Skip to content

Commit ee9f83f

Browse files
dev: fix setUp tests
1 parent 87eb1dd commit ee9f83f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/tech/ydb/core/impl/pool/EndpointPoolTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ public class EndpointPoolTest {
3737

3838
@Before
3939
public void setUp() throws IOException {
40+
Mockito.when(socketFactory.createSocket()).thenReturn(socket);
41+
Mockito.doNothing().when(socket).connect(Mockito.any(SocketAddress.class));
4042
mocks = MockitoAnnotations.openMocks(this);
4143
threadLocalStaticMock.when(ThreadLocalRandom::current).thenReturn(random);
4244
socketFactoryStaticMock.when(SocketFactory::getDefault).thenReturn(socketFactory);
43-
Mockito.when(socketFactory.createSocket()).thenReturn(socket);
44-
Mockito.doNothing().when(socket).connect(Mockito.any(SocketAddress.class));
4545
}
4646

4747
@After

0 commit comments

Comments
 (0)