This is an automated email from the ASF dual-hosted git repository.

mreutegg pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 00e5602b6f OAK-9826: Flaky test: DataStoreBlobStoreStatsTest
     new bcd78a78f6 Merge pull request #655 from mreutegg/OAK-9826
00e5602b6f is described below

commit 00e5602b6f77ee1210731630a8ffc7f90c12c580
Author: Marcel Reutegger <[email protected]>
AuthorDate: Fri Aug 5 17:27:30 2022 +0200

    OAK-9826: Flaky test: DataStoreBlobStoreStatsTest
    
    The statistics update interval is one second. Give the test a bit more time 
than that and increase maximum wait time to 1.5 seconds.
---
 .../oak/plugins/blob/datastore/DataStoreBlobStoreStatsTest.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStoreStatsTest.java
 
b/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStoreStatsTest.java
index fb9379f731..f3df903c1d 100644
--- 
a/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStoreStatsTest.java
+++ 
b/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStoreStatsTest.java
@@ -964,7 +964,7 @@ public class DataStoreBlobStoreStatsTest {
     }
 
     private static <T, R> R waitForMetric(Function<T, R> f, T input, R 
expected, R defaultValue) {
-        return waitForMetric(f, input, expected, defaultValue, 100, 1000);
+        return waitForMetric(f, input, expected, defaultValue, 100, 1500);
     }
 
     private static <T, R> R waitForMetric(Function<T, R> f, T input, R 
expected, R defaultValue, int intervalMilliseconds, int waitMilliseconds) {
@@ -988,7 +988,7 @@ public class DataStoreBlobStoreStatsTest {
     }
 
     private static <T> Long waitForNonzeroMetric(Function<T, Long> f, T input) 
{
-        return waitForNonzeroMetric(f, input, 100, 1000);
+        return waitForNonzeroMetric(f, input, 100, 1500);
     }
 
     private static <T> Long waitForNonzeroMetric(Function<T, Long> f, T input, 
int intervalMilliseconds, int waitMilliseconds) {

Reply via email to