diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-10-26 13:36:20 +0200 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-10-26 13:36:20 +0200 |
commit | 6555fc92200cb906dd7d6f7d226ed490c3b09b91 (patch) | |
tree | 0c5a605234672ad17c850bc255d4a0c738b5fea9 /vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi | |
parent | 0d2680649c1c08641ddbf6327e5e7b24eb237e7f (diff) |
Revert to previous behaviour, and simply delay ack until doc written
Diffstat (limited to 'vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi')
-rw-r--r-- | vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/DocumentV1ApiTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/DocumentV1ApiTest.java b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/DocumentV1ApiTest.java index 1629777f837..0e62b620828 100644 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/DocumentV1ApiTest.java +++ b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/DocumentV1ApiTest.java @@ -137,7 +137,7 @@ public class DocumentV1ApiTest { metric = new NullMetric(); metrics = new MetricReceiver.MockReceiver(); handler = new DocumentV1ApiHandler(clock, Duration.ofMillis(1), metric, metrics, access, docConfig, - executorConfig, clusterConfig, bucketConfig, Executors.newFixedThreadPool(2)); + executorConfig, clusterConfig, bucketConfig); } @After @@ -183,7 +183,7 @@ public class DocumentV1ApiTest { } @Test - public void testResponses() throws InterruptedException { + public void testResponses() { RequestHandlerTestDriver driver = new RequestHandlerTestDriver(handler); List<AckToken> tokens = List.of(new AckToken(null), new AckToken(null), new AckToken(null)); // GET at non-existent path returns 404 with available paths @@ -756,7 +756,7 @@ public class DocumentV1ApiTest { public void testThroughput() throws InterruptedException { DocumentOperationExecutorConfig executorConfig = new DocumentOperationExecutorConfig.Builder().build(); handler = new DocumentV1ApiHandler(clock, Duration.ofMillis(1), metric, metrics, access, docConfig, - executorConfig, clusterConfig, bucketConfig, Executors.newFixedThreadPool(2)); + executorConfig, clusterConfig, bucketConfig); int writers = 4; int queueFill = executorConfig.maxThrottled() - writers; |