Skip to content

Commit 59d4b60

Browse files
MONGOID-5599 Test on multiple mongoses
1 parent fc09714 commit 59d4b60

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.evergreen/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ axes:
427427
display_name: Sharded Cluster
428428
variables:
429429
TOPOLOGY: "sharded-cluster"
430-
SINGLE_MONGOS: true
431430

432431
- id: "auth"
433432
display_name: Authentication

.evergreen/config/axes.yml.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ axes:
5454
display_name: Sharded Cluster
5555
variables:
5656
TOPOLOGY: "sharded-cluster"
57-
SINGLE_MONGOS: true
5857

5958
- id: "auth"
6059
display_name: Authentication

spec/support/expectations.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
module Mongoid
55
module Expectations
6-
76
def connection_class
87
if defined?(Mongo::Server::ConnectionBase)
98
Mongo::Server::ConnectionBase
@@ -14,6 +13,9 @@ def connection_class
1413
end
1514

1615
def expect_query(number)
16+
if %i[ sharder load-balanced ].include?(ClusterConfig.instance.topology) && number > 0
17+
skip 'This spec requires replica set or standalone topology'
18+
end
1719
rv = nil
1820
RSpec::Mocks.with_temporary_scope do
1921
if number > 0

0 commit comments

Comments
 (0)