From bd2b3f1e9d60e4f5809617cd6d9f7aab1bd7af7d Mon Sep 17 00:00:00 2001 From: Julien Ruaux Date: Thu, 30 Mar 2023 15:45:02 -0700 Subject: [PATCH] test: Increased timeout for composite test --- .../com/redis/micrometer/AbstractRegistryTests.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/micrometer-registry-redis/src/test/java/com/redis/micrometer/AbstractRegistryTests.java b/core/micrometer-registry-redis/src/test/java/com/redis/micrometer/AbstractRegistryTests.java index 8a93a28..7aa3db4 100644 --- a/core/micrometer-registry-redis/src/test/java/com/redis/micrometer/AbstractRegistryTests.java +++ b/core/micrometer-registry-redis/src/test/java/com/redis/micrometer/AbstractRegistryTests.java @@ -390,13 +390,15 @@ public String[] nonKeyTags() { .tag("table", "customers").publishPercentiles(0.9, 0.99).register(registry); timer2.record(Duration.ofSeconds(5)); String index = "query"; - Awaitility.await().timeout(Duration.ofMillis(300)) + Awaitility.await().timeout(Duration.ofSeconds(3)) .until(() -> connection.sync().ftSearch(index, "*").size() == 2); List tsKeys = connection.sync().keys("ts:*"); - Assertions.assertEquals(new HashSet<>(Arrays.asList("ts:query:456:max", "ts:query:456:0.9", - "ts:query:123:sum", "ts:query:123:0.99", "ts:query:123:count", "ts:query:123:0.9", - "ts:query:456:count", "ts:query:123:mean", "ts:query:123:max", "ts:query:456:mean", "ts:query:456:sum", - "ts:query:456:0.99")), new HashSet<>(tsKeys)); + Assertions.assertEquals( + new HashSet<>( + Arrays.asList("ts:query:456:max", "ts:query:456:0.9", "ts:query:123:sum", "ts:query:123:0.99", + "ts:query:123:count", "ts:query:123:0.9", "ts:query:456:count", "ts:query:123:mean", + "ts:query:123:max", "ts:query:456:mean", "ts:query:456:sum", "ts:query:456:0.99")), + new HashSet<>(tsKeys)); List searchKeys = connection.sync().keys("hash:*"); Assertions.assertEquals(new HashSet<>(Arrays.asList("hash:query:456", "hash:query:123")), new HashSet<>(searchKeys));