Skip to content

Commit 58c04a9

Browse files
committed
Avoid race condition in tests.
See #2787
1 parent 4a08f64 commit 58c04a9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/test/java/org/springframework/data/redis/cache/RedisCacheTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ void retrieveReturnsLoadedValue() throws Exception {
649649

650650
CompletableFuture<Person> value = cache.retrieve(this.key, valueLoaderSupplier);
651651

652-
assertThat(loaded.get()).isFalse();
653652
assertThat(value.get()).isEqualTo(jon);
654653
assertThat(loaded.get()).isTrue();
655654
assertThat(value).isDone();

0 commit comments

Comments
 (0)