Skip to content

Commit 5489613

Browse files
authored
RUST-1412 sync StaleShardVersion test and remove skip (#706)
1 parent b9c4ea9 commit 5489613

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/test/spec/change_streams.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
use crate::test::{run_spec_test, TestClient, LOCK};
1+
use crate::test::{run_spec_test, LOCK};
22

3-
use super::{run_unified_format_test_filtered, unified_runner::TestCase};
3+
use super::run_unified_format_test;
44

55
#[cfg_attr(feature = "tokio-runtime", tokio::test(flavor = "multi_thread"))] // multi_thread required for FailPoint
66
#[cfg_attr(feature = "async-std-runtime", async_std::test)]
77
async fn run() {
88
let _guard = LOCK.run_exclusively().await;
9-
let client = TestClient::new().await;
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-
};
15-
169
run_spec_test(&["change-streams", "unified"], |f| {
17-
run_unified_format_test_filtered(f, pred)
10+
run_unified_format_test(f)
1811
})
1912
.await;
2013
}

src/test/spec/json/change-streams/unified/change-streams-resume-errorLabels.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,11 @@
14781478
},
14791479
{
14801480
"description": "change stream resumes after StaleShardVersion",
1481+
"runOnRequirements": [
1482+
{
1483+
"maxServerVersion": "6.0.99"
1484+
}
1485+
],
14811486
"operations": [
14821487
{
14831488
"name": "failPoint",

src/test/spec/json/change-streams/unified/change-streams-resume-errorLabels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,9 @@ tests:
743743
databaseName: *database0
744744

745745
- description: change stream resumes after StaleShardVersion
746+
runOnRequirements:
747+
# StaleShardVersion is obsolete as of 6.1 and is no longer marked as resumable.
748+
- maxServerVersion: "6.0.99"
746749
operations:
747750
- name: failPoint
748751
object: testRunner

0 commit comments

Comments
 (0)