Fix Java 8 compat

This commit is contained in:
Adrien Piquerez 2024-04-09 09:53:32 +02:00
parent ab1aa6d001
commit 8870cb6a82
1 changed files with 4 additions and 4 deletions

View File

@ -305,12 +305,12 @@ class BuildServerTest extends AbstractServerTest {
test("workspace/reload: send diagnostic and respond with error") {
// write an other-build.sbt file that does not compile
val otherBuildFile = svr.baseDirectory.toPath.resolve("other-build.sbt")
Files.writeString(
Files.write(
otherBuildFile,
"""|val someSettings = Seq(
| scalacOptions ++= "-deprecation"
|)
|""".stripMargin
|""".stripMargin.getBytes
)
// reload
reloadWorkspace(id = 52)
@ -331,12 +331,12 @@ class BuildServerTest extends AbstractServerTest {
}
)
// fix the other-build.sbt file and reload again
Files.writeString(
Files.write(
otherBuildFile,
"""|val someSettings = Seq(
| scalacOptions += "-deprecation"
|)
|""".stripMargin
|""".stripMargin.getBytes
)
reloadWorkspace(id = 52)
// assert received an empty diagnostic