From 2754c0bb8f1f427006ac991835bc788148593716 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Thu, 21 Dec 2023 12:28:19 +0100 Subject: [PATCH] Fix TestAccessControl execution The test must run single-threaded and was run like that until 9a7cf10d16253d165253218ae8345f22e6d480c8. --- .../src/test/java/io/trino/security/TestAccessControl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/trino-tests/src/test/java/io/trino/security/TestAccessControl.java b/testing/trino-tests/src/test/java/io/trino/security/TestAccessControl.java index e86fe06d1d5d..33961bf0cd52 100644 --- a/testing/trino-tests/src/test/java/io/trino/security/TestAccessControl.java +++ b/testing/trino-tests/src/test/java/io/trino/security/TestAccessControl.java @@ -65,6 +65,7 @@ import io.trino.testing.TestingGroupProvider; import io.trino.testing.TestingSession; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.parallel.Execution; import java.lang.invoke.MethodHandles; import java.time.Duration; @@ -118,7 +119,9 @@ import static java.util.stream.Collectors.toList; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.junit.jupiter.api.parallel.ExecutionMode.SAME_THREAD; +@Execution(SAME_THREAD) public class TestAccessControl extends AbstractTestQueryFramework {