diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-05-20 15:19:21 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-05-20 15:19:21 +0200 |
commit | 1d4cf565d6338b5be19c408be3ba65701585a991 (patch) | |
tree | 9dda2a824ff66b20c06d2dad6d89ea7e4e28a721 | |
parent | b09e01cb1cfbf527f4884ef6fbecd9f47821bbdc (diff) |
Remove WIP unit test
-rw-r--r-- | vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java b/vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java deleted file mode 100644 index a643783bd46..00000000000 --- a/vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package ai.vespa.feed.client; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -import java.time.Duration; -import java.time.Instant; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicLong; - -class HttpRequestStrategyTest { - - @Test - void test() throws InterruptedException { - AtomicLong c = new AtomicLong(); - class Counter { - long d; - synchronized long next() { return ++d; } - } - Counter d = new Counter(); - int n = 2; - ExecutorService executor = Executors.newFixedThreadPool(n); - Instant now = Instant.now(); - for (int i = 0; i < n; i++) { - executor.submit(() -> { - //while (c.incrementAndGet() < 1e8); - //while (d.next() < 1e8); - }); - } - executor.shutdown(); - executor.awaitTermination(1, TimeUnit.DAYS); - Assertions.fail("ms: " + Duration.between(now, Instant.now()).toMillis()); - }; - -} |