Skip to content

Commit 06817ea

Browse files
committed
Add sanity interruption assertion
This commit adds an assertion to the TestSecureSM#testNoModifySibling test that sanity checks that the second child was actually interrupted and therefore actually attempted to interrupt the first child.
1 parent 80042ae commit 06817ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/java/org/elasticsearch/TestSecureSM.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public void run() {
127127
t2.start();
128128
t2.interrupt();
129129
t2.join();
130-
// sibling was not able to muck with its other sibling
130+
// sibling attempted to but was not able to muck with its other sibling
131+
assertTrue(interrupted2.get());
131132
assertFalse(interrupted1.get());
132133
// but we are the parent and can terminate
133134
t1.interrupt();

0 commit comments

Comments
 (0)