From a1d81ac774c0ae52f155cd764fd74fd1ba928a5f Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Fri, 23 Sep 2022 21:34:57 +0200 Subject: ensure bots cleanly stop before a match completes --- planetwars-matchrunner/tests/test_matchrunner.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'planetwars-matchrunner/tests') diff --git a/planetwars-matchrunner/tests/test_matchrunner.rs b/planetwars-matchrunner/tests/test_matchrunner.rs index 5ac8649..5d2fc83 100644 --- a/planetwars-matchrunner/tests/test_matchrunner.rs +++ b/planetwars-matchrunner/tests/test_matchrunner.rs @@ -70,5 +70,6 @@ async fn docker_runner_timeout() { .request(1, b"sup".to_vec(), Duration::from_millis(1000)) .await; - assert_eq!(resp, Err(RequestError::Timeout)) + assert_eq!(resp, Err(RequestError::Timeout)); + ctx.shutdown().await; } -- cgit v1.2.3