diff --git a/plugins/terminal/tests/src/com/intellij/terminal/tests/reworked/frontend/TerminalCopyOnSelectionTest.kt b/plugins/terminal/tests/src/com/intellij/terminal/tests/reworked/frontend/TerminalCopyOnSelectionTest.kt index e3dcb21d7703..0ef117e0378e 100644 --- a/plugins/terminal/tests/src/com/intellij/terminal/tests/reworked/frontend/TerminalCopyOnSelectionTest.kt +++ b/plugins/terminal/tests/src/com/intellij/terminal/tests/reworked/frontend/TerminalCopyOnSelectionTest.kt @@ -13,6 +13,7 @@ import com.intellij.testFramework.fixtures.BasePlatformTestCase import kotlinx.coroutines.cancel import org.jetbrains.plugins.terminal.util.terminalProjectScope import org.junit.Assume +import org.junit.Before import org.junit.Test import org.junit.jupiter.api.condition.OS import org.junit.runner.RunWith @@ -21,8 +22,8 @@ import java.awt.datatransfer.DataFlavor @RunWith(JUnit4::class) internal class TerminalCopyOnSelectionTest : BasePlatformTestCase() { - override fun setUp() { - super.setUp() + @Before + fun requireNotLinux() { Assume.assumeTrue("Can't run this test on Linux because non-headless mode is required to access system selection content", OS.current() != OS.LINUX) }