Skip to content

Commit 40ace73

Browse files
authored
test(NODE-5645): Define wire versions for too_old and too_new tests (#4200)
1 parent c54466c commit 40ace73

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

test/spec/server-discovery-and-monitoring/rs/too_old.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"b:27017"
1717
],
1818
"minWireVersion": 0,
19-
"maxWireVersion": 6
19+
"maxWireVersion": 21
2020
}
2121
],
2222
[
@@ -30,7 +30,9 @@
3030
"hosts": [
3131
"a:27017",
3232
"b:27017"
33-
]
33+
],
34+
"minWireVersion": 999,
35+
"maxWireVersion": 1000
3436
}
3537
]
3638
],

test/spec/server-discovery-and-monitoring/rs/too_old.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ phases: [
1010
setName: "rs",
1111
hosts: ["a:27017", "b:27017"],
1212
minWireVersion: 0,
13-
maxWireVersion: 6
13+
maxWireVersion: 21
1414
}],
1515
["b:27017", {
1616
ok: 1,
1717
helloOk: true,
1818
isWritablePrimary: false,
1919
secondary: true,
2020
setName: "rs",
21-
hosts: ["a:27017", "b:27017"]
21+
hosts: ["a:27017", "b:27017"],
22+
minWireVersion: 999,
23+
maxWireVersion: 1000
2224
}]
2325
],
2426
outcome: {

test/spec/server-discovery-and-monitoring/sharded/too_new.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"ok": 1,
2222
"helloOk": true,
2323
"isWritablePrimary": true,
24-
"msg": "isdbgrid"
24+
"msg": "isdbgrid",
25+
"minWireVersion": 7,
26+
"maxWireVersion": 900
2527
}
2628
]
2729
],

test/spec/server-discovery-and-monitoring/sharded/too_new.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ phases: [
1515
ok: 1,
1616
helloOk: true,
1717
isWritablePrimary: true,
18-
msg: "isdbgrid"
18+
msg: "isdbgrid",
19+
minWireVersion: 7,
20+
maxWireVersion: 900
1921
}]
2022
],
2123
outcome: {

0 commit comments

Comments
 (0)