You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by an...@apache.org on 2017/08/08 22:23:30 UTC

[2/4] incubator-tamaya-extensions git commit: Added latency for change test (sometimes failing).

Added latency for change test (sometimes failing).


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/commit/0d13b0ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/0d13b0ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/0d13b0ec

Branch: refs/heads/java8
Commit: 0d13b0ec09527c0a5ffdc0580f11350b01ba6064
Parents: 70edbf9
Author: anatole <an...@apache.org>
Authored: Tue Aug 8 21:46:22 2017 +0200
Committer: anatole <an...@apache.org>
Committed: Tue Aug 8 21:46:22 2017 +0200

----------------------------------------------------------------------
 .../test/java/org/apache/tamaya/events/ConfigurationChangeTest.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/0d13b0ec/modules/events/src/test/java/org/apache/tamaya/events/ConfigurationChangeTest.java
----------------------------------------------------------------------
diff --git a/modules/events/src/test/java/org/apache/tamaya/events/ConfigurationChangeTest.java b/modules/events/src/test/java/org/apache/tamaya/events/ConfigurationChangeTest.java
index 4cedeab..60f40c2 100644
--- a/modules/events/src/test/java/org/apache/tamaya/events/ConfigurationChangeTest.java
+++ b/modules/events/src/test/java/org/apache/tamaya/events/ConfigurationChangeTest.java
@@ -69,6 +69,7 @@ public class ConfigurationChangeTest {
     @Test
     public void testGetTimestamp() throws Exception {
         Configuration config = ConfigurationProvider.getConfiguration();
+        Thread.sleep(10L);
         ConfigurationChange change = ConfigurationChangeBuilder.of(config).build();
         assertTrue((System.currentTimeMillis() - change.getTimestamp()) > 0L);
         change = ConfigurationChangeBuilder.of(config).setTimestamp(10L).build();