From ac000a4e5425abcd35d20bef063288b06f74438c Mon Sep 17 00:00:00 2001 From: Florian Hockmann Date: Wed, 12 Jan 2022 16:39:25 +0100 Subject: [PATCH] Mark cache expiration test as flaky Part of #2934 Signed-off-by: Florian Hockmann --- .../org/janusgraph/diskstorage/cache/ExpirationCacheTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/janusgraph-test/src/test/java/org/janusgraph/diskstorage/cache/ExpirationCacheTest.java b/janusgraph-test/src/test/java/org/janusgraph/diskstorage/cache/ExpirationCacheTest.java index 9492c077ca..6cbe9e119b 100644 --- a/janusgraph-test/src/test/java/org/janusgraph/diskstorage/cache/ExpirationCacheTest.java +++ b/janusgraph-test/src/test/java/org/janusgraph/diskstorage/cache/ExpirationCacheTest.java @@ -15,6 +15,7 @@ package org.janusgraph.diskstorage.cache; import com.google.common.collect.Lists; +import io.github.artsok.RepeatedIfExceptionsTest; import org.janusgraph.diskstorage.EntryList; import org.janusgraph.diskstorage.StaticBuffer; import org.janusgraph.diskstorage.keycolumnvalue.KeyColumnValueStore; @@ -52,8 +53,7 @@ private static KCVSCache getCache(KeyColumnValueStore store, Duration expiration return new ExpirationKCVSCache(store,METRICS_STRING,expirationTime.toMillis(),graceWait.toMillis(),CACHE_SIZE); } - - @Test + @RepeatedIfExceptionsTest(repeats = 4, minSuccess = 2) public void testExpiration() throws Exception { testExpiration(Duration.ofMillis(200)); testExpiration(Duration.ofSeconds(4));