mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 23:49:13 +00:00
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.
This commit is contained in:
parent
46481c6799
commit
083f60e1da
@ -127,7 +127,8 @@ public class TestSecureSM extends TestCase {
|
||||
t2.start();
|
||||
t2.interrupt();
|
||||
t2.join();
|
||||
// sibling was not able to muck with its other sibling
|
||||
// sibling attempted to but was not able to muck with its other sibling
|
||||
assertTrue(interrupted2.get());
|
||||
assertFalse(interrupted1.get());
|
||||
// but we are the parent and can terminate
|
||||
t1.interrupt();
|
||||
|
Loading…
x
Reference in New Issue
Block a user