Skip to content

Commit a57d917

Browse files
committed
debug commit
1 parent 08d39c6 commit a57d917

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

src/test/java/org/tarantool/AbstractTarantoolConnectorIT.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
package org.tarantool;
22

3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
import static org.junit.jupiter.api.Assertions.assertNotNull;
5+
import static org.junit.jupiter.api.Assertions.assertTrue;
6+
import static org.tarantool.TestUtils.makeInstanceEnv;
7+
38
import org.junit.jupiter.api.AfterAll;
49
import org.junit.jupiter.api.BeforeAll;
510
import org.opentest4j.AssertionFailedError;
611

7-
import java.math.BigInteger;
812
import java.io.IOException;
13+
import java.math.BigInteger;
914
import java.net.InetSocketAddress;
1015
import java.net.Socket;
1116
import java.util.List;
@@ -15,12 +20,6 @@
1520
import java.util.concurrent.TimeUnit;
1621
import java.util.concurrent.TimeoutException;
1722

18-
import static org.junit.jupiter.api.Assertions.assertEquals;
19-
import static org.junit.jupiter.api.Assertions.assertNotNull;
20-
import static org.junit.jupiter.api.Assertions.assertTrue;
21-
22-
import static org.tarantool.TestUtils.makeInstanceEnv;
23-
2423
/**
2524
* Abstract test. Provides environment control and frequently used functions.
2625
*/
@@ -234,12 +233,16 @@ protected List<?> consoleDelete(String spaceName, Object key) {
234233

235234
protected static void stopTarantool(String instance) {
236235
control.stop(instance);
236+
System.out.println("tnt stopping");
237237
control.waitStopped("jdk-testing");
238+
System.out.println("tnt stopped");
238239
}
239240

240241
protected static void startTarantool(String instance) {
241242
control.start(instance);
243+
System.out.println("tnt starting");
242244
control.waitStarted("jdk-testing");
245+
System.out.println("tnt started");
243246
}
244247

245248
/**

src/test/java/org/tarantool/ClientReconnectIT.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package org.tarantool;
22

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+
310
import org.junit.jupiter.api.AfterAll;
411
import org.junit.jupiter.api.AfterEach;
512
import org.junit.jupiter.api.Test;
@@ -18,13 +25,6 @@
1825
import java.util.concurrent.atomic.AtomicReferenceArray;
1926
import java.util.concurrent.locks.LockSupport;
2027

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-
2828
public class ClientReconnectIT extends AbstractTarantoolConnectorIT {
2929
private static final String INSTANCE_NAME = "jdk-testing";
3030
private TarantoolClient client;
@@ -284,8 +284,11 @@ public void run() {
284284

285285
// Restart tarantool several times in the foreground.
286286
while (deadline > System.currentTimeMillis()) {
287+
System.out.println("before stop iteration");
287288
stopTarantool(INSTANCE_NAME);
289+
System.out.println("after stop / before start iteration");
288290
startTarantool(INSTANCE_NAME);
291+
System.out.println("after start iteration");
289292
try {
290293
Thread.sleep(RESTART_TIMEOUT * 2);
291294
} catch (InterruptedException e) {

0 commit comments

Comments
 (0)