Skip to content

Commit 1f4c0c9

Browse files
vbabaninrozza
andauthored
Update driver-core/src/test/unit/com/mongodb/connection/ServerSelectionSelectionTest.java
Co-authored-by: Ross Lawley <ross.lawley@gmail.com>
1 parent 2bf6aaa commit 1f4c0c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ private OperationContext createOperationContext() {
302302
// The spec defines deprioritized_servers as a pre-populated list to feed into the selection mechanism - not as "simulate the
303303
// failure that caused deprioritization." Thus, SystemOverloadedError used unconditionally regardless of the cluster type.
304304
MongoException error = new MongoException("test");
305-
error.addLabel("SystemOverloadedError");
305+
error.addLabel(MongoException.SYSTEM_OVERLOADED_ERROR_LABEL);
306306
serverDeprioritization.onAttemptFailure(error);
307307
}
308308
return operationContext;

0 commit comments

Comments
 (0)