Skip to content

Commit dfae55b

Browse files
committed
Return ALL_SERVERS from selector.
1 parent cd5dcf1 commit dfae55b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver-core/src/test/unit/com/mongodb/internal/connection/ServerDeprioritizationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ void onAttemptFailureIgnoresIfPoolClearedException() {
183183
serverDeprioritization.updateCandidate(SERVER_A.getAddress());
184184
serverDeprioritization.onAttemptFailure(
185185
new MongoConnectionPoolClearedException(new ServerId(new ClusterId(), new ServerAddress()), null));
186-
ServerSelector selector = createAssertingSelector(ALL_SERVERS, singletonList(SERVER_A));
187-
assertEquals(singletonList(SERVER_A), serverDeprioritization.apply(selector).select(SHARDED_CLUSTER));
186+
ServerSelector selector = createAssertingSelector(ALL_SERVERS, ALL_SERVERS);
187+
assertEquals(ALL_SERVERS, serverDeprioritization.apply(selector).select(SHARDED_CLUSTER));
188188
}
189189

190190
@Test

0 commit comments

Comments
 (0)