From 32a5c20b33434ff4da1ab464fa98cc937f706460 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Mon, 3 Aug 2015 16:43:09 -0700 Subject: [PATCH] Tests: Forbid @Slow Now that all uses of @Slow are gone, we can forbid this annotations use so tests are not confusing. Follow up to #12617. --- dev-tools/src/main/resources/forbidden/test-signatures.txt | 1 + .../elasticsearch/cloud/aws/blobstore/S3OutputStreamTest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-tools/src/main/resources/forbidden/test-signatures.txt b/dev-tools/src/main/resources/forbidden/test-signatures.txt index 7289edcd755..07ebf1712eb 100644 --- a/dev-tools/src/main/resources/forbidden/test-signatures.txt +++ b/dev-tools/src/main/resources/forbidden/test-signatures.txt @@ -19,3 +19,4 @@ com.carrotsearch.randomizedtesting.annotations.Seed @ Don't commit hardcoded see com.carrotsearch.randomizedtesting.annotations.Repeat @ Don't commit hardcoded repeats org.apache.lucene.codecs.Codec#setDefault(org.apache.lucene.codecs.Codec) @ Use the SuppressCodecs("*") annotation instead +org.apache.lucene.util.LuceneTestCase$Slow @ Don't write slow tests diff --git a/plugins/cloud-aws/src/test/java/org/elasticsearch/cloud/aws/blobstore/S3OutputStreamTest.java b/plugins/cloud-aws/src/test/java/org/elasticsearch/cloud/aws/blobstore/S3OutputStreamTest.java index 5723f58a4ce..3b1ecb83103 100644 --- a/plugins/cloud-aws/src/test/java/org/elasticsearch/cloud/aws/blobstore/S3OutputStreamTest.java +++ b/plugins/cloud-aws/src/test/java/org/elasticsearch/cloud/aws/blobstore/S3OutputStreamTest.java @@ -77,7 +77,7 @@ public class S3OutputStreamTest extends ElasticsearchTestCase { } - @Test @Slow + @Test public void testWriteExactlyNTimesMoreDataThanBufferSize() throws IOException { int n = randomIntBetween(2, 3); int length = n * BUFFER_SIZE;