Skip to content

Commit ac73678

Browse files
committed
Fix test issue.
1 parent bef1d23 commit ac73678

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void onAttemptFailureIgnoresIfNonShardedWithOverloadErrorAndDisabledOverloadReta
233233
ClusterDescription cluster = multipleModeClusterDescription(clusterType);
234234
ServerSelector selector = createAssertingSelector(ALL_SERVERS, singletonList(SERVER_A));
235235

236-
ServerDeprioritization serverDeprioritization = new OperationContext.ServerDeprioritization(false);
236+
serverDeprioritization = new OperationContext.ServerDeprioritization(false);
237237
deprioritize(clusterType, createSystemOverloadedError(), SERVER_B);
238238
assertEquals(singletonList(SERVER_A), serverDeprioritization.apply(selector).select(cluster),
239239
format("Expected no deprioritization when overloadRetargeting is disabled for %s with SystemOverloadedError", clusterType));

0 commit comments

Comments
 (0)