We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37c4f7a commit 7ce9837Copy full SHA for 7ce9837
1 file changed
core/sail/nativerdf/src/test/java/org/eclipse/rdf4j/sail/nativerdf/wal/ValueStoreWalSearchTest.java
@@ -67,7 +67,13 @@ void findsValueByIdViaSegmentProbe() throws Exception {
67
Integer pickId = ids[new Random().nextInt(ids.length)];
68
69
ValueStoreWalSearch search = ValueStoreWalSearch.open(cfgRead);
70
- Value found = search.findValueById(pickId);
+ Value found = null;
71
+ for (int attempt = 0; attempt < 10 && found == null; attempt++) {
72
+ found = search.findValueById(pickId);
73
+ if (found == null) {
74
+ Thread.sleep(100);
75
+ }
76
77
assertThat(found).as("ValueStoreWalSearch should find value by id").isNotNull();
78
79
// Cross-check against ValueStore
0 commit comments