From 9bf8cc87cf439d33e9c9c110fa8e3979b6f86853 Mon Sep 17 00:00:00 2001 From: Nick Molcanov <32801560+nck-mlcnv@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:58:00 +0200 Subject: [PATCH] Adjust test configurations 4 --- .../iguana/cc/worker/impl/SPARQLProtocolWorkerTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/aksw/iguana/cc/worker/impl/SPARQLProtocolWorkerTest.java b/src/test/java/org/aksw/iguana/cc/worker/impl/SPARQLProtocolWorkerTest.java index f7955b94..91d0bc00 100644 --- a/src/test/java/org/aksw/iguana/cc/worker/impl/SPARQLProtocolWorkerTest.java +++ b/src/test/java/org/aksw/iguana/cc/worker/impl/SPARQLProtocolWorkerTest.java @@ -49,10 +49,7 @@ public class SPARQLProtocolWorkerTest { .options(new WireMockConfiguration() .useChunkedTransferEncoding(Options.ChunkedEncodingPolicy.NEVER) .dynamicPort() - .notifier(new ConsoleNotifier(false)) - .jettyIdleTimeout(2000L) - .jettyStopTimeout(2000L) - .timeout(2000)) + .notifier(new ConsoleNotifier(false))) .failOnUnmatchedRequests(true) .build(); @@ -229,6 +226,8 @@ public void testBadHttpCodeResponse() throws IOException, URISyntaxException { @ParameterizedTest @MethodSource("completionTargets") public void testCompletionTargets(HttpWorker.CompletionTarget target) throws URISyntaxException, IOException { + wm.setGlobalFixedDelay(5); + final var uri = new URI("http://localhost:" + wm.getPort() + "/ds/query"); final var processor = new ResponseBodyProcessor("application/sparql-results+json"); final var queryHandler = new QueryHandler(new QueryHandler.Config(queryFile.toAbsolutePath().toString(), QueryHandler.Config.Format.SEPARATOR, null, true, QueryHandler.Config.Order.LINEAR, 0L, QueryHandler.Config.Language.SPARQL)); @@ -240,7 +239,7 @@ public void testCompletionTargets(HttpWorker.CompletionTarget target) throws URI queryHandler, target, connection, - Duration.parse("PT5S"), + Duration.parse("PT60S"), "application/sparql-results+json", RequestFactory.RequestType.POST_URL_ENC_QUERY, false