aboutsummaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-02-03 20:06:06 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-02-03 20:06:06 +0000
commit722f4a489b0918bca92120e3faa2b12cdcb7d8d4 (patch)
tree559f695439bc9831f225115179d461c45c828b9c /container-search
parent99ab443250858f95d5646d80332306f857a47568 (diff)
Wait until Pong has returned before saying you are done.
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java b/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java
index a1b5bd6d102..9a0a206151f 100644
--- a/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java
+++ b/container-search/src/test/java/com/yahoo/search/dispatch/searchcluster/SearchClusterTest.java
@@ -125,10 +125,10 @@ public class SearchClusterTest {
@Override
public void ping() {
int docs = numDocs.get();
- pingCount.incrementAndGet();
pongHandler.handle ((docs < 0)
? new Pong(ErrorMessage.createBackendCommunicationError("Negative numDocs = " + docs))
: new Pong(docs));
+ pingCount.incrementAndGet();
}
}