Skip to content

Commit

Permalink
adjust wait timeout for tests which might be slower than others
Browse files Browse the repository at this point in the history
nobodyiam committed Feb 13, 2019
1 parent 9e479e5 commit 41450a5
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -485,7 +485,7 @@ public void testAutoUpdateWithDeletedPropertiesWithNoDefaultValue() throws Excep

config.onRepositoryChange(ConfigConsts.NAMESPACE_APPLICATION, newProperties);

TimeUnit.MILLISECONDS.sleep(100);
TimeUnit.MILLISECONDS.sleep(300);

assertEquals(newTimeout, bean.getTimeout());
assertEquals(initialBatch, bean.getBatch());
@@ -515,7 +515,7 @@ public void testAutoUpdateWithTypeMismatch() throws Exception {

config.onRepositoryChange(ConfigConsts.NAMESPACE_APPLICATION, newProperties);

TimeUnit.MILLISECONDS.sleep(100);
TimeUnit.MILLISECONDS.sleep(300);

assertEquals(newTimeout, bean.getTimeout());
assertEquals(initialBatch, bean.getBatch());
@@ -539,7 +539,7 @@ public void testAutoUpdateWithTypeMismatchWithYamlFile() throws Exception {

configFile.onRepositoryChange("application.yaml", readYamlContentAsConfigFileProperties("case5-new.yaml"));

TimeUnit.MILLISECONDS.sleep(100);
TimeUnit.MILLISECONDS.sleep(300);

assertEquals(newTimeout, bean.getTimeout());
assertEquals(initialBatch, bean.getBatch());
@@ -907,7 +907,7 @@ public void testAutoUpdateJsonValueWithInvalidValue() throws Exception {

config.onRepositoryChange(ConfigConsts.NAMESPACE_APPLICATION, newProperties);

TimeUnit.MILLISECONDS.sleep(100);
TimeUnit.MILLISECONDS.sleep(300);

// should not change anything
assertTrue(jsonBean == bean.getJsonBean());
@@ -934,7 +934,7 @@ public void testAutoUpdateJsonValueWithNoValueAndNoDefaultValue() throws Excepti

config.onRepositoryChange(ConfigConsts.NAMESPACE_APPLICATION, newProperties);

TimeUnit.MILLISECONDS.sleep(100);
TimeUnit.MILLISECONDS.sleep(300);

// should not change anything
assertTrue(jsonBean == bean.getJsonBean());
Original file line number Diff line number Diff line change
@@ -315,7 +315,7 @@ public void testAutoUpdateWithDeletedPropertiesWithNoDefaultValue() throws Excep

config.onRepositoryChange(ConfigConsts.NAMESPACE_APPLICATION, newProperties);

TimeUnit.MILLISECONDS.sleep(100);
TimeUnit.MILLISECONDS.sleep(300);

assertEquals(newTimeout, bean.getTimeout());
assertEquals(initialBatch, bean.getBatch());
@@ -345,7 +345,7 @@ public void testAutoUpdateWithTypeMismatch() throws Exception {

config.onRepositoryChange(ConfigConsts.NAMESPACE_APPLICATION, newProperties);

TimeUnit.MILLISECONDS.sleep(100);
TimeUnit.MILLISECONDS.sleep(300);

assertEquals(newTimeout, bean.getTimeout());
assertEquals(initialBatch, bean.getBatch());

0 comments on commit 41450a5

Please sign in to comment.