This is an automated email from the ASF dual-hosted git repository.
olli pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-presence.git
The following commit(s) were added to refs/heads/master by this push:
new 6eae120 SLING-9456 Announce presence of JCR users as OSGi services
6eae120 is described below
commit 6eae120747b62e9bb09d9568ffbf325ba41534f3
Author: Oliver Lietz <[email protected]>
AuthorDate: Tue May 19 13:58:40 2020 +0200
SLING-9456 Announce presence of JCR users as OSGi services
wait for sling-readall when testing for user presence
---
src/test/java/org/apache/sling/jcr/presence/UserPresenterIT.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/sling/jcr/presence/UserPresenterIT.java
b/src/test/java/org/apache/sling/jcr/presence/UserPresenterIT.java
index 781fa9c..fa34a01 100644
--- a/src/test/java/org/apache/sling/jcr/presence/UserPresenterIT.java
+++ b/src/test/java/org/apache/sling/jcr/presence/UserPresenterIT.java
@@ -65,7 +65,13 @@ public class UserPresenterIT extends JcrPresenceTestSupport {
@Test
public void testUserPresence() throws Exception {
// sling-readall user
- assertThat(countUserPresences("sling-readall", false,
true)).isEqualTo(1);
+ with().
+ pollInterval(1, SECONDS).
+ then().
+ await().
+ alias("counting user presences (sling-readall)").
+ atMost(10, SECONDS).
+ until(() -> countUserPresences("sling-readall", false, true) == 1);
// test user
assertThat(isUserPresent("test")).isFalse();