File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
galvan/src/main/java/org/terracotta/testing/master
terracotta/src/main/java/com/tc/server Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ public void run() {
397
397
boolean exited = false ;
398
398
while (!exited ) {
399
399
ping (instance .outputWriter ());
400
- exited = instance .waitFor (10 , TimeUnit .SECONDS );
400
+ exited = instance .waitFor (2 , TimeUnit .SECONDS );
401
401
}
402
402
returnValue = instance .exitValue ();
403
403
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ private static void deadmansSwitch() {
37
37
t = new Thread (()->{
38
38
while (true ) {
39
39
try {
40
- int code = readNextCode (120 , TimeUnit .SECONDS );
40
+ int code = readNextCode (240 , TimeUnit .SECONDS );
41
41
switch (code ) {
42
42
case 's' , 'z' -> {
43
43
break ;
@@ -48,6 +48,7 @@ private static void deadmansSwitch() {
48
48
} catch (IOException | InterruptedException io ) {
49
49
50
50
} catch (TimeoutException e ) {
51
+ System .err .println ("TestingServerMain: Timed out waiting for a message from the parent process that it is still alive" );
51
52
System .exit (2 );
52
53
}
53
54
}
You can’t perform that action at this time.
0 commit comments