mirror of https://github.com/sbt/sbt.git
Fix Java 8 compat
This commit is contained in:
parent
ab1aa6d001
commit
8870cb6a82
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue