mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
chore: switch to the blocking runtime for unit tests
This commit is contained in:
parent
a5a3fb346d
commit
51466f58ca
4
x.py
4
x.py
@ -122,7 +122,7 @@ def run_unit_test(project: str):
|
||||
"cargo", "+nightly", "test",
|
||||
"-q" if argv.quiet else None,
|
||||
"--manifest-path", f"{project}/Cargo.toml",
|
||||
"--features", "async",
|
||||
"--features", "blocking",
|
||||
*unknown,
|
||||
] if x], env=env, cwd=project_dir, comment=f"unit test {project}", tag=tag)
|
||||
|
||||
@ -131,7 +131,7 @@ def run_unit_test(project: str):
|
||||
messages = subprocess.run([
|
||||
"cargo", "+nightly", "test",
|
||||
"--manifest-path", f"{project}/Cargo.toml",
|
||||
"--features", "async",
|
||||
"--features", "blocking",
|
||||
"--no-run", "--message-format=json",
|
||||
*unknown,
|
||||
], env=env, cwd=project_dir, check=True, capture_output=True).stdout
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user