Skip to content

Commit e3b98ad

Browse files
committed
chore: fix unit test
1 parent d4ceb49 commit e3b98ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wrapper/src/test/java/software/amazon/jdbc/hostlistprovider/AuroraHostListProviderTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ void testIdentifyConnectionHostInTopology() throws SQLException {
467467
"jdbc:someprotocol://",
468468
mockHostListProviderService,
469469
"jdbc:someprotocol://url"));
470+
when(auroraHostListProvider.getCachedTopology()).thenReturn(cachedTopology);
470471
when(mockResultSet.next()).thenReturn(true);
471472
when(mockResultSet.getString(eq(1))).thenReturn("instance-a-1");
472473
when(auroraHostListProvider.refresh(eq(mockConnection))).thenReturn(cachedTopology);

0 commit comments

Comments
 (0)