chore: switch to the blocking runtime for unit tests

This commit is contained in:
Ryan Leckey 2021-03-03 17:41:38 -08:00
parent a5a3fb346d
commit 51466f58ca
No known key found for this signature in database
GPG Key ID: F8AA68C235AB08C9

4
x.py
View File

@ -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