Skip to content
Snippets Groups Projects
Commit fff50f26 authored by Sören Henning's avatar Sören Henning
Browse files

Fix timeunit

parent 1df0bc7a
No related branches found
No related tags found
No related merge requests found
Pipeline #7038 passed
......@@ -125,7 +125,7 @@ class EnvVarLoadGeneratorFactory {
final long timeoutMs = Integer.parseInt(Objects.requireNonNullElse(
System.getenv(ConfigurationKeys.HTTP_TIMEOUT_MS),
Long.toString(LoadGenerator.HTTP_TIMEOUT_MS_DEFAULT)));
recordSender = new HttpRecordSender<>(url, async, Duration.ofSeconds(timeoutMs));
recordSender = new HttpRecordSender<>(url, async, Duration.ofMillis(timeoutMs));
LOGGER.info("Use HTTP server as target with URL '{}' and asynchronously: '{}'.", url, async);
} else if (target == LoadGeneratorTarget.PUBSUB) {
final String project = System.getenv(ConfigurationKeys.PUBSUB_PROJECT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment