Skip to content

Commit e3e47cc

Browse files
committed
fail commands are well-supported now; also sync sdam specs
1 parent a634548 commit e3e47cc

9 files changed

Lines changed: 6 additions & 19 deletions

File tree

spec/integration/query_cache_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,6 @@
11181118
end
11191119

11201120
context 'when find command fails and retries' do
1121-
require_fail_command
11221121
require_no_multi_mongos
11231122
require_warning_clean
11241123

spec/integration/retryable_writes/retryable_writes.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
require_relative './shared/does_not_support_retries'
99

1010
describe 'Retryable Writes' do
11-
require_fail_command
1211
require_no_multi_mongos
1312
require_warning_clean
1413

spec/integration/retryable_writes_errors_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
context "PoolClearedError retryability test" do
7777
require_topology :single, :sharded
7878
require_no_multi_mongos
79-
require_fail_command
8079
require_retry_writes
8180

8281
let(:options) { { max_pool_size: 1 } }

spec/integration/sdam_error_handling_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,6 @@
387387
end
388388

389389
context 'non-timeout network error via fail point' do
390-
require_fail_command
391-
392390
let(:admin_client) { client.use(:admin) }
393391

394392
let(:set_fail_point) do

spec/spec_tests/data/sdam/rs/compatible.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ phases: [
1212
setName: "rs",
1313
hosts: ["a:27017", "b:27017"],
1414
minWireVersion: 0,
15-
# this should be the minimum maxWireVersion for the server to be considered compatible
16-
# currently 4.2 is the earliest version we support, which has maxWireVersion 8
17-
maxWireVersion: 8
15+
maxWireVersion: 21
1816
}],
1917
["b:27017", {
2018
ok: 1,

spec/spec_tests/data/sdam/rs/compatible_unknown.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ phases: [
1212
setName: "rs",
1313
hosts: ["a:27017", "b:27017"],
1414
minWireVersion: 0,
15-
# this should be the minimum maxWireVersion for the server to be considered compatible
16-
# currently 4.2 is the earliest version we support, which has maxWireVersion 8
17-
maxWireVersion: 8
15+
maxWireVersion: 21
1816
}],
1917
],
2018
outcome: {

spec/spec_tests/data/sdam/sharded/compatible.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ phases: [
1717
isWritablePrimary: true,
1818
msg: "isdbgrid",
1919
minWireVersion: 0,
20-
# this should be the minimum maxWireVersion for the server to be considered compatible
21-
# currently 4.2 is the earliest version we support, which has maxWireVersion 8
22-
maxWireVersion: 8
20+
maxWireVersion: 21
2321
}]
2422
],
2523
outcome: {

spec/spec_tests/data/sdam/single/compatible.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ phases: [
88
helloOk: true,
99
isWritablePrimary: true,
1010
minWireVersion: 0,
11-
maxWireVersion: 1000
11+
maxWireVersion: 21
1212
}]
1313
],
1414
outcome: {

spec/spec_tests/data/sdam/single/too_old_then_upgraded.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description: "Standalone with default maxWireVersion of 0 is upgraded to one with maxWireVersion 6"
1+
description: "Standalone with default maxWireVersion of 0 is upgraded to one with maxWireVersion 21"
22
uri: "mongodb://a"
33
phases: [
44
{
@@ -29,9 +29,7 @@ phases: [
2929
helloOk: true,
3030
isWritablePrimary: true,
3131
minWireVersion: 0,
32-
# this should be the minimum maxWireVersion for the server to be considered compatible
33-
# currently 4.2 is the earliest version we support, which has maxWireVersion 8
34-
maxWireVersion: 8
32+
maxWireVersion: 21
3533
}]
3634
],
3735
outcome: {

0 commit comments

Comments
 (0)