From 87023d0783221c6314b7efcf0f7fb644cc56e785 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Thu, 18 Nov 2021 17:20:14 +0000 Subject: [PATCH] force shutdown both test server types --- actix-http-test/src/lib.rs | 2 +- actix-test/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actix-http-test/src/lib.rs b/actix-http-test/src/lib.rs index 3ec15a7e5..699bb2660 100644 --- a/actix-http-test/src/lib.rs +++ b/actix-http-test/src/lib.rs @@ -275,7 +275,7 @@ impl TestServer { /// Stop HTTP server. /// - /// Waits for spawned `Server` and `System` to force shutdown. + /// Waits for spawned `Server` and `System` to (force) shutdown. pub async fn stop(&mut self) { // signal server to stop self.server.stop(false).await; diff --git a/actix-test/src/lib.rs b/actix-test/src/lib.rs index cf5738aa0..6c776a871 100644 --- a/actix-test/src/lib.rs +++ b/actix-test/src/lib.rs @@ -520,12 +520,12 @@ impl TestServer { self.client.headers() } - /// Gracefully stop HTTP server. + /// Stop HTTP server. /// - /// Waits for spawned `Server` and `System` to shutdown gracefully. + /// Waits for spawned `Server` and `System` to shutdown (force) shutdown. pub async fn stop(mut self) { // signal server to stop - self.server.stop(true).await; + self.server.stop(false).await; // also signal system to stop // though this is handled by `ServerBuilder::exit_system` too