Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.parallel.Execution;

import java.nio.file.Files;
import java.nio.file.Path;
Expand All @@ -43,8 +44,10 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS;
import static org.junit.jupiter.api.parallel.ExecutionMode.SAME_THREAD;

@TestInstance(PER_CLASS)
@Execution(SAME_THREAD) // testException is shared mutable state
Copy link
Copy Markdown
Member

@findepi findepi Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test used to be marked @Test(singleThreaded = true) // testException is a shared mutable state and it got lost when migrating to JUnit. thanks @ebyhr for adding it back

I fully understand that it is obvious that mistakes may happen, but maybe there is a way to check if there are any other cases like this one?

public class TestIcebergFileMetastoreCreateTableFailure
extends AbstractTestQueryFramework
{
Expand Down