From b78dd1b65fc7fe2b94796fc7dedeb4c98add7e41 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 30 Nov 2023 09:39:05 +0100 Subject: [PATCH] Avoid race condition in tests. See #2787 --- .../org/springframework/data/redis/cache/RedisCacheTests.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/java/org/springframework/data/redis/cache/RedisCacheTests.java b/src/test/java/org/springframework/data/redis/cache/RedisCacheTests.java index ebf1b5d8a1..ce65143220 100644 --- a/src/test/java/org/springframework/data/redis/cache/RedisCacheTests.java +++ b/src/test/java/org/springframework/data/redis/cache/RedisCacheTests.java @@ -649,7 +649,6 @@ void retrieveReturnsLoadedValue() throws Exception { CompletableFuture value = cache.retrieve(this.key, valueLoaderSupplier); - assertThat(loaded.get()).isFalse(); assertThat(value.get()).isEqualTo(jon); assertThat(loaded.get()).isTrue(); assertThat(value).isDone();