|
1 | 1 | package org.tarantool;
|
2 | 2 |
|
| 3 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 4 | +import static org.junit.jupiter.api.Assertions.assertFalse; |
| 5 | +import static org.junit.jupiter.api.Assertions.assertNotNull; |
| 6 | +import static org.junit.jupiter.api.Assertions.assertThrows; |
| 7 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
| 8 | +import static org.junit.jupiter.api.Assertions.fail; |
| 9 | + |
3 | 10 | import org.junit.jupiter.api.AfterAll;
|
4 | 11 | import org.junit.jupiter.api.AfterEach;
|
5 | 12 | import org.junit.jupiter.api.Test;
|
|
18 | 25 | import java.util.concurrent.atomic.AtomicReferenceArray;
|
19 | 26 | import java.util.concurrent.locks.LockSupport;
|
20 | 27 |
|
21 |
| -import static org.junit.jupiter.api.Assertions.assertEquals; |
22 |
| -import static org.junit.jupiter.api.Assertions.assertFalse; |
23 |
| -import static org.junit.jupiter.api.Assertions.assertNotNull; |
24 |
| -import static org.junit.jupiter.api.Assertions.assertThrows; |
25 |
| -import static org.junit.jupiter.api.Assertions.assertTrue; |
26 |
| -import static org.junit.jupiter.api.Assertions.fail; |
27 |
| - |
28 | 28 | public class ClientReconnectIT extends AbstractTarantoolConnectorIT {
|
29 | 29 | private static final String INSTANCE_NAME = "jdk-testing";
|
30 | 30 | private TarantoolClient client;
|
@@ -284,8 +284,11 @@ public void run() {
|
284 | 284 |
|
285 | 285 | // Restart tarantool several times in the foreground.
|
286 | 286 | while (deadline > System.currentTimeMillis()) {
|
| 287 | + System.out.println("before stop iteration"); |
287 | 288 | stopTarantool(INSTANCE_NAME);
|
| 289 | + System.out.println("after stop / before start iteration"); |
288 | 290 | startTarantool(INSTANCE_NAME);
|
| 291 | + System.out.println("after start iteration"); |
289 | 292 | try {
|
290 | 293 | Thread.sleep(RESTART_TIMEOUT * 2);
|
291 | 294 | } catch (InterruptedException e) {
|
|
0 commit comments