Skip to content

Commit 6858590

Browse files
committed
Rely on discovery for setting up client in test suite
1 parent ac78ef0 commit 6858590

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

spec/support/authorization.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@
109109
user: TEST_USER.name,
110110
password: TEST_USER.password,
111111
max_pool_size: 1,
112-
write: WRITE_CONCERN,
113-
connect: CONNECT
112+
write: WRITE_CONCERN
114113
)
115114

116115
# Provides an authorized mongo client on the default test database for the
@@ -124,8 +123,7 @@
124123
user: ROOT_USER.name,
125124
password: ROOT_USER.password,
126125
max_pool_size: 1,
127-
write: WRITE_CONCERN,
128-
connect: CONNECT
126+
write: WRITE_CONCERN
129127
)
130128

131129
# Provides an unauthorized mongo client on the default test database.
@@ -135,8 +133,7 @@
135133
ADDRESSES,
136134
database: TEST_DB,
137135
max_pool_size: 1,
138-
write: WRITE_CONCERN,
139-
connect: CONNECT
136+
write: WRITE_CONCERN
140137
)
141138

142139
# Provides an unauthorized mongo client on the admin database, for use in
@@ -147,8 +144,7 @@
147144
ADDRESSES,
148145
database: Mongo::Database::ADMIN,
149146
max_pool_size: 1,
150-
write: WRITE_CONCERN,
151-
connect: CONNECT
147+
write: WRITE_CONCERN
152148
)
153149

154150
# Get an authorized client on the admin database logged in as the admin

0 commit comments

Comments
 (0)