Skip to content

Commit

Permalink
fix: Since docker mysql 5.7 using yaSSL(It only supports TLSv1.1), av…
Browse files Browse the repository at this point in the history
…oid running when using rustls.
  • Loading branch information
qwerty2501 committed Sep 14, 2023
1 parent 13520a0 commit 161bdb4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/x.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,15 @@ def run(command, comment=None, env=None, service=None, tag=None, args=None, data
#

for version in ["8", "5_7"]:
run(
f"cargo test --no-default-features --features any,mysql,macros,_unstable-all-types,runtime-{runtime},tls-{tls}",
comment=f"test mysql {version}",
service=f"mysql_{version}",
tag=f"mysql_{version}" if runtime == "async-std" else f"mysql_{version}_{runtime}",
)
# Since docker mysql 5.7 using yaSSL(It only supports TLSv1.1), avoid running when using rustls.
# https://github.com/docker-library/mysql/issues/567
if not(version == "5_7" and tls == "rustls"):
run(
f"cargo test --no-default-features --features any,mysql,macros,_unstable-all-types,runtime-{runtime},tls-{tls}",
comment=f"test mysql {version}",
service=f"mysql_{version}",
tag=f"mysql_{version}" if runtime == "async-std" else f"mysql_{version}_{runtime}",
)

## +client-ssl
if tls != "none" and not(version == "5_7" and tls == "rustls"):
Expand Down

0 comments on commit 161bdb4

Please sign in to comment.