From 826667bc500bf6f487e038b2c68b4b9c3033d3eb Mon Sep 17 00:00:00 2001 From: Josephine Rueckert Date: Sun, 29 Sep 2024 21:46:36 +0200 Subject: [PATCH] test: mark flaky tests with flaky tag - testSendEvent - delayedActionIsTriggeredTest --- .../terasology/engine/integrationenvironment/ExampleTest.java | 1 + .../engine/integrationenvironment/delay/DelayManagerTest.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/engine-tests/src/test/java/org/terasology/engine/integrationenvironment/ExampleTest.java b/engine-tests/src/test/java/org/terasology/engine/integrationenvironment/ExampleTest.java index 4dbdad5591d..b68b95a1674 100644 --- a/engine-tests/src/test/java/org/terasology/engine/integrationenvironment/ExampleTest.java +++ b/engine-tests/src/test/java/org/terasology/engine/integrationenvironment/ExampleTest.java @@ -74,6 +74,7 @@ public void testRunWhileTimeout() { } @Test + @Tag("flaky") public void testSendEvent() throws IOException { Context clientContext = helper.createClient(); diff --git a/engine-tests/src/test/java/org/terasology/engine/integrationenvironment/delay/DelayManagerTest.java b/engine-tests/src/test/java/org/terasology/engine/integrationenvironment/delay/DelayManagerTest.java index a480dee9697..b30be6e19d2 100644 --- a/engine-tests/src/test/java/org/terasology/engine/integrationenvironment/delay/DelayManagerTest.java +++ b/engine-tests/src/test/java/org/terasology/engine/integrationenvironment/delay/DelayManagerTest.java @@ -5,6 +5,7 @@ import com.google.common.collect.Lists; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -36,6 +37,7 @@ public class DelayManagerTest { Time time; @Test + @Tag("flaky") public void delayedActionIsTriggeredTest(ModuleTestingHelper helper) throws IOException { helper.createClient(); helper.runWhile(() -> Lists.newArrayList(entityManager.getEntitiesWith(ClientComponent.class)).isEmpty());