Skip to content
Snippets Groups Projects
Commit bc565842 authored by srosse's avatar srosse
Browse files

OO-538: fix unit test which set a persisted property without waiting the changes

parent edc8c216
No related branches found
No related tags found
No related merge requests found
...@@ -150,6 +150,7 @@ public class VersionManagerTest extends OlatTestCase { ...@@ -150,6 +150,7 @@ public class VersionManagerTest extends OlatTestCase {
@Test @Test
public void testOverflow_lowLevel() throws IOException { public void testOverflow_lowLevel() throws IOException {
versioningConfigurator.setMaxNumberOfVersionsProperty(new Long(3)); versioningConfigurator.setMaxNumberOfVersionsProperty(new Long(3));
sleep(1000);
//create a file //create a file
OlatRootFolderImpl rootTest = new OlatRootFolderImpl("/test_" + UUID.randomUUID(), null); OlatRootFolderImpl rootTest = new OlatRootFolderImpl("/test_" + UUID.randomUUID(), null);
...@@ -186,6 +187,7 @@ public class VersionManagerTest extends OlatTestCase { ...@@ -186,6 +187,7 @@ public class VersionManagerTest extends OlatTestCase {
@Test @Test
public void testOverflow_lowLevel_deactivated() throws IOException { public void testOverflow_lowLevel_deactivated() throws IOException {
versioningConfigurator.setMaxNumberOfVersionsProperty(new Long(0)); versioningConfigurator.setMaxNumberOfVersionsProperty(new Long(0));
sleep(1000);
//create a file //create a file
OlatRootFolderImpl rootTest = new OlatRootFolderImpl("/test_" + UUID.randomUUID(), null); OlatRootFolderImpl rootTest = new OlatRootFolderImpl("/test_" + UUID.randomUUID(), null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment