aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2021-12-15 12:22:52 +0000
committerArne H Juul <arnej@yahooinc.com>2021-12-15 12:22:52 +0000
commit084ad28ba2db5b728a2d7c243349f0319d8e04a6 (patch)
tree25c9897c172f0eebb7866ae9e670a1ba1c8cf12f /documentapi
parenta5647c29ccc651c1ce3f49eac23b1310993c9ff6 (diff)
stop standalone slobroks when test is finished
Diffstat (limited to 'documentapi')
-rwxr-xr-xdocumentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/PolicyTestCase.java10
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();
}