Skip to content

Commit 5331130

Browse files
committed
Await the login finishing
1 parent 528f4d4 commit 5331130

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl AsyncTestContext for MainContext {
4545

4646
async fn login(test_host: String, test_token: String) {
4747
let local_set = tokio::task::LocalSet::new();
48-
local_set.spawn_local(async move {
48+
let handle = local_set.spawn_local(async move {
4949
run_test(TestItem {
5050
name: "login".to_string(),
5151
args: vec![
@@ -64,6 +64,7 @@ async fn login(test_host: String, test_token: String) {
6464
})
6565
.await;
6666
});
67+
handle.await.unwrap();
6768
}
6869

6970
#[test_context(MainContext)]

0 commit comments

Comments
 (0)