1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02:00

fix server worker name

This commit is contained in:
Rob Ede
2021-11-04 23:00:43 +00:00
parent 5b537c7b10
commit 7d98247cb0
3 changed files with 4 additions and 2 deletions

View File

@ -299,7 +299,7 @@ impl ServerWorker {
// TODO: wait for server startup with sync channel
std::thread::Builder::new()
.name("eofibef".to_owned())
.name(format!("actix-server worker {}", idx))
.spawn(move || {
// forward existing actix system context
if let Some(sys) = sys {

View File

@ -312,7 +312,7 @@ async fn test_service_restart() {
h.join().unwrap().unwrap();
}
#[cfg_attr(not(target_os = "linux"), ignore)]
#[ignore] // non-deterministic on CI
#[actix_rt::test]
async fn worker_restart() {
use actix_service::{Service, ServiceFactory};