polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [2/2] zest-java git commit: Retry metrics tests on failure to overcome flakiness
Date Wed, 15 Jun 2016 17:04:47 GMT
Retry metrics tests on failure to overcome flakiness


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/9bd8a764
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/9bd8a764
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/9bd8a764

Branch: refs/heads/develop
Commit: 9bd8a764bbd4139d14ddbbc35784e17cb81c2d21
Parents: 119bf53
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Wed Jun 15 19:03:46 2016 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Wed Jun 15 19:03:46 2016 +0200

----------------------------------------------------------------------
 .../test/java/org/apache/zest/library/metrics/MetricsTest.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/9bd8a764/libraries/metrics/src/test/java/org/apache/zest/library/metrics/MetricsTest.java
----------------------------------------------------------------------
diff --git a/libraries/metrics/src/test/java/org/apache/zest/library/metrics/MetricsTest.java
b/libraries/metrics/src/test/java/org/apache/zest/library/metrics/MetricsTest.java
index 782fa9a..5f36d06 100644
--- a/libraries/metrics/src/test/java/org/apache/zest/library/metrics/MetricsTest.java
+++ b/libraries/metrics/src/test/java/org/apache/zest/library/metrics/MetricsTest.java
@@ -27,6 +27,7 @@ import java.io.PrintStream;
 import java.lang.reflect.Field;
 import java.util.Map;
 import java.util.concurrent.TimeUnit;
+import org.junit.ClassRule;
 import org.junit.Test;
 import org.apache.zest.api.common.Optional;
 import org.apache.zest.api.composite.TransientComposite;
@@ -37,6 +38,7 @@ import org.apache.zest.bootstrap.AssemblyException;
 import org.apache.zest.bootstrap.ModuleAssembly;
 import org.apache.zest.metrics.yammer.YammerMetricsAssembler;
 import org.apache.zest.test.AbstractZestTest;
+import org.apache.zest.test.util.RetryRule;
 
 import static org.hamcrest.CoreMatchers.equalTo;
 import static org.junit.Assert.assertThat;
@@ -44,6 +46,8 @@ import static org.junit.Assert.assertTrue;
 
 public class MetricsTest extends AbstractZestTest
 {
+    @ClassRule public static RetryRule retry = new RetryRule();
+
     private PrintStream reportOut;
     private ByteArrayOutputStream result;
     private YammerMetricsAssembler assembler;


Mime
View raw message