From 06ff43bba6e2bdeae17899cf81e25257f3ccfcd2 Mon Sep 17 00:00:00 2001 From: salaboy Date: Fri, 27 Sep 2024 08:24:17 +0100 Subject: [PATCH] updating sdk tests Signed-off-by: salaboy --- .../java/io/dapr/it/testcontainers/DaprContainerIT.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sdk-tests/src/test/java/io/dapr/it/testcontainers/DaprContainerIT.java b/sdk-tests/src/test/java/io/dapr/it/testcontainers/DaprContainerIT.java index 66c8e68f3..bdafff9a7 100644 --- a/sdk-tests/src/test/java/io/dapr/it/testcontainers/DaprContainerIT.java +++ b/sdk-tests/src/test/java/io/dapr/it/testcontainers/DaprContainerIT.java @@ -110,13 +110,12 @@ public void testDaprContainerDefaults() { "A subscription should be configured by default if none is provided" ); - assertEquals( - 1, - DAPR_CONTAINER.getConfigurations().size(), - "A configuration should be configured" + assertNotNull( + DAPR_CONTAINER.getConfiguration(), + "A configuration should be provided" ); - Configuration configuration = DAPR_CONTAINER.getConfigurations().iterator().next(); + Configuration configuration = DAPR_CONTAINER.getConfiguration(); assertEquals("1",configuration.getTracing().getSamplingRate()); assertEquals(true,configuration.getTracing().getStdout()); assertEquals("localhost:4317",configuration.getTracing().getOtelEndpoint());