Skip to content

Commit 4ffb091

Browse files
committed
change
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 5159f26 commit 4ffb091

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

agent/src/test/java/com/cloud/agent/AgentTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ public void testGetLinkLogNullLinkReturnsEmptyString() {
7676
@Test
7777
public void testGetLinkLogLinkWithTraceEnabledReturnsLinkLogWithHashCode() {
7878
Link link = mock(Link.class);
79-
InetSocketAddress socketAddress = mock(InetSocketAddress.class);
80-
when(socketAddress.toString()).thenReturn("192.168.1.100");
79+
InetSocketAddress socketAddress = new InetSocketAddress("192.168.1.100", 1111);
8180
when(link.getSocketAddress()).thenReturn(socketAddress);
8281
when(logger.isTraceEnabled()).thenReturn(true);
8382

0 commit comments

Comments
 (0)