From 8d8b3d7424db6c89af2829ac6cd6fde2760224dc Mon Sep 17 00:00:00 2001 From: bhf Date: Tue, 9 Jun 2026 19:32:05 +0100 Subject: [PATCH] fix(rust): add assertions for 'found' variable in integration tests --- libraries/rust/tests/integration_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/rust/tests/integration_tests.rs b/libraries/rust/tests/integration_tests.rs index ef7d078..480d1c5 100644 --- a/libraries/rust/tests/integration_tests.rs +++ b/libraries/rust/tests/integration_tests.rs @@ -85,6 +85,7 @@ fn test_integration_websocket_subscription() { } thread::sleep(Duration::from_millis(500)); } + assert!(found, "Should have received ADD_ITEM for ws-key through websocket"); // Attempt local cache assertion directly, since read_message should process and store it. let local_val = cache.get_local("ws-key"); @@ -125,6 +126,7 @@ fn test_integration_websocket_hydration() { } thread::sleep(Duration::from_millis(500)); } + assert!(found, "Should have received hydrated ADD_ITEM for hydrate-key"); let local_val = cache.get_local("hydrate-key"); assert_eq!(local_val, Some("hydrate-val".to_string()));