Skip to content

Commit 91bf9f4

Browse files
authored
Skip change streams test failing against server latest (#702)
1 parent 1b87266 commit 91bf9f4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/spec/change_streams.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ use super::{run_unified_format_test_filtered, unified_runner::TestCase};
77
async fn run() {
88
let _guard = LOCK.run_exclusively().await;
99
let client = TestClient::new().await;
10-
// TODO SERVER-65497: remove this skip.
11-
let skip = client.is_sharded() && client.server_version_gte(6, 0);
12-
let pred =
13-
|tc: &TestCase| !skip || tc.description != "Test new structure in ns document MUST NOT err";
10+
// TODO RUST-1412: remove this skip.
11+
let is_gte_6_1 = client.server_version_gte(6, 1);
12+
let pred = |tc: &TestCase| {
13+
!(is_gte_6_1 && tc.description == "change stream resumes after StaleShardVersion")
14+
};
1415

1516
run_spec_test(&["change-streams", "unified"], |f| {
1617
run_unified_format_test_filtered(f, pred)

0 commit comments

Comments
 (0)