Skip to content

Commit

Permalink
Mark cache expiration test as flaky
Browse files Browse the repository at this point in the history
Part of #2934

Signed-off-by: Florian Hockmann <[email protected]>
  • Loading branch information
FlorianHockmann authored and farodin91 committed Jan 13, 2022
1 parent a60e928 commit ac000a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit ac000a4

Please sign in to comment.