From 7ceb88bac80b0643fb50a5e1b8065b5f428c9ea3 Mon Sep 17 00:00:00 2001 From: Piotr Mlocek Date: Fri, 31 Jul 2026 16:18:07 -0700 Subject: [PATCH 1/2] test(server): stabilize watch span cancellation test Signed-off-by: Piotr Mlocek --- crates/openshell-server/src/grpc/sandbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/openshell-server/src/grpc/sandbox.rs b/crates/openshell-server/src/grpc/sandbox.rs index 71951cb98..fb9145c4b 100644 --- a/crates/openshell-server/src/grpc/sandbox.rs +++ b/crates/openshell-server/src/grpc/sandbox.rs @@ -2607,7 +2607,7 @@ mod tests { drop(stream); drop(request_span); - tokio::time::timeout(std::time::Duration::from_millis(200), async { + tokio::time::timeout(std::time::Duration::from_secs(5), async { while traced.spans_named("disconnected_watch_request").is_empty() { tokio::task::yield_now().await; } From e75641297f346b1f1f4c1ff3fdf4193973425257 Mon Sep 17 00:00:00 2001 From: Piotr Mlocek Date: Fri, 31 Jul 2026 16:53:58 -0700 Subject: [PATCH 2/2] test(server): poll span exporter at fixed interval Signed-off-by: Piotr Mlocek --- crates/openshell-server/src/grpc/sandbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/openshell-server/src/grpc/sandbox.rs b/crates/openshell-server/src/grpc/sandbox.rs index fb9145c4b..63f8ee857 100644 --- a/crates/openshell-server/src/grpc/sandbox.rs +++ b/crates/openshell-server/src/grpc/sandbox.rs @@ -2609,7 +2609,7 @@ mod tests { tokio::time::timeout(std::time::Duration::from_secs(5), async { while traced.spans_named("disconnected_watch_request").is_empty() { - tokio::task::yield_now().await; + tokio::time::sleep(std::time::Duration::from_millis(10)).await; } }) .await