This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/master by this push:
new fbfaba2 UNOMI-371 Fix compilation error & other minor improvements
fbfaba2 is described below
commit fbfaba2b8c920264e5a5faebf2c8cc74e606ceb9
Author: Serge Huber <[email protected]>
AuthorDate: Tue Jan 5 14:30:40 2021 +0100
UNOMI-371 Fix compilation error & other minor improvements
---
.../apache/unomi/itests/ProfileServiceWithoutOverwriteIT.java | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git
a/itests/src/test/java/org/apache/unomi/itests/ProfileServiceWithoutOverwriteIT.java
b/itests/src/test/java/org/apache/unomi/itests/ProfileServiceWithoutOverwriteIT.java
index 5c2ed5b..bcd427e 100644
---
a/itests/src/test/java/org/apache/unomi/itests/ProfileServiceWithoutOverwriteIT.java
+++
b/itests/src/test/java/org/apache/unomi/itests/ProfileServiceWithoutOverwriteIT.java
@@ -96,16 +96,17 @@ public class ProfileServiceWithoutOverwriteIT extends
BaseIT {
public void testSaveProfileWithoutOverwriteSavesAfterReload() throws
InterruptedException {
Profile profile = setupWithoutOverwriteTests();
String profileId = profile.getItemId();
- Thread.sleep(4000);
+
+ profileService.refresh();
Profile updatedProfile = profileService.load(profileId);
updatedProfile.setProperty("country", "test2-country");
profileService.save(updatedProfile);
- Thread.sleep(4000);
+ profileService.refresh();
Profile profileWithNewCountry = profileService.load(profileId);
- assertEquals(profileWithNewCountry.getProperty("country"),
"test2-country");
+ assertEquals("Country property doesn't have expected value",
"test2-country", profileWithNewCountry.getProperty("country"));
}
@Test(expected = RuntimeException.class)
@@ -113,11 +114,11 @@ public class ProfileServiceWithoutOverwriteIT extends
BaseIT {
Profile profile = setupWithoutOverwriteTests();
String profileId = profile.getItemId();
- Thread.sleep(4000);
+ profileService.refresh();
Profile updatedProfile = profileService.load(profileId);
updatedProfile.setProperty("country", "test2-country");
- updatedProfile.setMetadata("seq_no", 1L);
+ updatedProfile.setSystemMetadata("seq_no", 1L);
profileService.save(updatedProfile);
}
}