Skip to content

Commit

Permalink
Adjust test configurations 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Jul 18, 2024
1 parent 5488327 commit 9bf8cc8
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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));
Expand All @@ -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
Expand Down

0 comments on commit 9bf8cc8

Please sign in to comment.