Skip to content

Commit 78c16ea

Browse files
committed
Modified test case to test child behavior on parent termination
This refer to #2274
1 parent 6ed417d commit 78c16ea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/faultTolerance/ActorSupervisorStrategyTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import java.util.concurrent.TimeUnit;
1919

2020
import static akka.pattern.Patterns.ask;
21+
import static org.junit.Assert.assertTrue;
2122

2223
/**
2324
* @author oleg.agafonov@telestax.com (Oleg Agafonov)
@@ -63,6 +64,11 @@ public void childActorThrowsExceptionTest() throws Exception {
6364
Thread.sleep(5000);
6465
child.tell("check exception", getRef());
6566
expectMsgEquals(duration("1 second"), true);
67+
68+
system.stop(parent);
69+
Thread.sleep(500);
70+
assertTrue(parent.isTerminated());
71+
assertTrue(child.isTerminated());
6672
}};
6773

6874
}

0 commit comments

Comments
 (0)