Skip to content

Commit

Permalink
Drop lock acquisitions before recursing
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Dec 22, 2023
1 parent e3282ce commit 12e656c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/coordinator/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ pub(crate) async fn new_test(test_body: impl TestBody) {
serai_container.name()
)));
test.provide_container(composition);
drop(context_lock);
test.run_async(spawn_coordinator_or_run_test).await;
} else {
// Wait for the Serai node to boot, and for the Tendermint chain to get past the first block
Expand Down
2 changes: 2 additions & 0 deletions tests/full-stack/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ pub(crate) async fn new_test(test_body: impl TestBody) {
serai_container.name(),
)));
test.provide_container(composition);
drop(outer_ops);
drop(context_lock);
test.run_async(spawn_coordinator_or_run_test).await;
} else {
let outer_ops = outer_ops.take().unwrap();
Expand Down

0 comments on commit 12e656c

Please sign in to comment.