Skip to content

Commit db6966d

Browse files
committed
JAVA-2788: Revert change to SimpleSessionContext test class
The change to SimpleSessionContext#hasSession to return false instead of true was inadvertent, and causes the retryable writes tests in driver-core to fail. This commit reverts this change and fixes the test failures.
1 parent 4cc6191 commit db6966d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-core/src/test/functional/com/mongodb/binding/SimpleSessionContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SimpleSessionContext implements SessionContext {
3939

4040
@Override
4141
public boolean hasSession() {
42-
return false;
42+
return true;
4343
}
4444

4545
@Override

0 commit comments

Comments
 (0)