aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search/cluster
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-09-19 21:19:48 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-09-19 21:19:48 +0200
commit13b9f16b13a370ddaea0460d8d3721e5f2ef1c8f (patch)
tree3300800914affdcd56f4753dbd6c817ed943ce89 /container-search/src/test/java/com/yahoo/search/cluster
parent7b64e79d96cf9b3f61bd385f0a32e9454a4ef3d2 (diff)
Transition from down to up initially
- Use tri-state logic for working/failing/unknown - Be initially down in test and verify we come up
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search/cluster')
-rw-r--r--container-search/src/test/java/com/yahoo/search/cluster/test/ClusteredConnectionTestCase.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/cluster/test/ClusteredConnectionTestCase.java b/container-search/src/test/java/com/yahoo/search/cluster/test/ClusteredConnectionTestCase.java
index 84c10991293..79e96a7c5a2 100644
--- a/container-search/src/test/java/com/yahoo/search/cluster/test/ClusteredConnectionTestCase.java
+++ b/container-search/src/test/java/com/yahoo/search/cluster/test/ClusteredConnectionTestCase.java
@@ -114,7 +114,8 @@ public class ClusteredConnectionTestCase {
connection0.setInService(false);
forcePing(myBackend);
r=new Execution(myBackend, Execution.Context.createContextStub()).search(new SimpleQuery(0));
- assertEquals("No backends in service. Try later",r.hits().getError().getMessage());
+ System.out.println(r.hits().getError().getDetailedMessage());
+ assertEquals("No backends in service. Try later", r.hits().getError().getMessage());
connection2.setInService(true);
connection1.setInService(true);