From 51466f58ca29b8d1178bcdcf7746ce3ec45eb6e1 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Wed, 3 Mar 2021 17:41:38 -0800 Subject: [PATCH] chore: switch to the blocking runtime for unit tests --- x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x.py b/x.py index 06eaae82..9e80fade 100755 --- a/x.py +++ b/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