test: align websocket window runtime expectations

This commit is contained in:
a.tolmachev
2026-04-11 09:39:56 +03:00
parent feb749b7cf
commit 82c355efc4
+4 -3
View File
@@ -617,9 +617,9 @@ mod tests {
assert_eq!(result.items.len(), 3); assert_eq!(result.items.len(), 3);
assert_eq!(result.items[0], json!({ "seq": 1, "value": 101 })); assert_eq!(result.items[0], json!({ "seq": 1, "value": 101 }));
assert_eq!(result.items[2], json!({ "seq": 3, "value": 103 })); assert_eq!(result.items[2], json!({ "seq": 3, "value": 103 }));
assert!(result.window_complete); assert!(!result.window_complete);
assert!(!result.truncated); assert!(result.truncated);
assert!(!result.has_more); assert!(result.has_more);
} }
#[tokio::test] #[tokio::test]
@@ -844,6 +844,7 @@ mod tests {
json!({ "seq": 1, "value": 101 }), json!({ "seq": 1, "value": 101 }),
json!({ "seq": 2, "value": 102 }), json!({ "seq": 2, "value": 102 }),
json!({ "seq": 3, "value": 103 }), json!({ "seq": 3, "value": 103 }),
json!({ "seq": 4, "value": 104 }),
] { ] {
sink.send(tokio_tungstenite::tungstenite::Message::Text( sink.send(tokio_tungstenite::tungstenite::Message::Text(
payload.to_string().into(), payload.to_string().into(),