Skip to content

Commit 72aaad4

Browse files
committed
Loosened up server address check for aggregate to collection
1 parent b8e38fe commit 72aaad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/com/mongodb/AggregationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public void testDollarOutOnSecondary() throws UnknownHostException {
201201
.build();
202202
Cursor cursor = verify(pipeline, options, ReadPreference.secondary(), aggCollection);
203203
assertEquals(2, rsDatabase.getCollection("aggCollection").count());
204-
assertEquals(primary, cursor.getServerAddress());
204+
assertEquals(primary.getSocketAddress(), cursor.getServerAddress().getSocketAddress());
205205
}
206206

207207
@Test

0 commit comments

Comments
 (0)