diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2021-12-16 10:01:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 10:01:07 +0100 |
commit | 8a920f7f7ce1e27901a677f21bbaa75b7b06b8d5 (patch) | |
tree | 034d6b3242e8e8c5fef081c78682efa8346ee7aa /documentapi | |
parent | 578a3379cc6f37cd5790b07d50ed7f0991dd6969 (diff) | |
parent | d3e60400a37aae23002dcdc6bc99c09d5cd27dba (diff) |
Merge pull request #20536 from vespa-engine/arnej/hunting-unit-test-fails-1
Arnej/hunting unit test fails 1
Diffstat (limited to 'documentapi')
-rwxr-xr-x | documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/PolicyTestCase.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/PolicyTestCase.java b/documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/PolicyTestCase.java index 83f2fbcff5e..4c41edb4dd3 100755 --- a/documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/PolicyTestCase.java +++ b/documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/PolicyTestCase.java @@ -140,13 +140,16 @@ public class PolicyTestCase { assertTrue(new DocumentProtocol(manager).createPolicy("Extern", spec) instanceof ErrorPolicy); assertTrue(new DocumentProtocol(manager).createPolicy("Extern", spec + ";") instanceof ErrorPolicy); assertTrue(new DocumentProtocol(manager).createPolicy("Extern", spec + ";bar") instanceof ErrorPolicy); + slobrok.stop(); } @Test public void requireThatExternPolicyWithUnknownPatternSelectsNone() throws Exception { + var slobrok = new Slobrok(); PolicyTestFrame frame = newPutDocumentFrame("id:ns:testdoc::"); - setupExternPolicy(frame, new Slobrok(), "foo/bar"); + setupExternPolicy(frame, slobrok, "foo/bar"); frame.assertSelect(null); + slobrok.stop(); } @Test @@ -175,6 +178,7 @@ public class PolicyTestCase { server.destroy(); } frame.destroy(); + slobrok.stop(); } @Test @@ -188,6 +192,7 @@ public class PolicyTestCase { frame.assertMergeOneReply(server.net.getConnectionSpec() + "/chain.default"); server.destroy(); frame.destroy(); + slobrok.stop(); } @Test @@ -773,6 +778,9 @@ public class PolicyTestCase { return; } Thread.sleep(10); + if (i == 42) { + ((Mirror) slobrok).dumpState(); + } } throw new TimeoutException(); } |