Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Ignore test on linux for the time being #2495

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions frontend/src/test/scala/bloop/bsp/BspBaseSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,14 @@ abstract class BspBaseSuite extends BaseSuite with BspClientTest {
}
}

def testMac(name: String)(fun: => Any): Unit = {
if (isMac) {
super.test(name)(fun)
} else {
super.ignore(name, "DISABLED")(fun)
}
}

private final lazy val tempDir = Files.createTempDirectory("temp-sockets")
tempDir.toFile.deleteOnExit()

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/test/scala/bloop/bsp/BspCompileSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class BspCompileSpec(
}
}

testNonWindows(
testMac(
"create orphan client classes directory and make sure loading a BSP session cleans it up"
) {
TestUtil.withinWorkspace { workspace =>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/test/scala/bloop/testing/BaseSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import utest.ufansi.Str
abstract class BaseSuite extends TestSuite with BloopHelpers {
val pprint = _root_.pprint.PPrinter.BlackWhite
def isWindows: Boolean = bloop.util.CrossPlatform.isWindows
def isMac: Boolean = bloop.util.CrossPlatform.isMac
def isAppveyor: Boolean = "True" == System.getenv("APPVEYOR")
def beforeAll(): Unit = ()
def afterAll(): Unit = ()
Expand Down
Loading