Skip to content

Commit

Permalink
Fix compiler.close() in CompilerTest
Browse files Browse the repository at this point in the history
Since the compiler is instantiated on class level, it should also be
torn down on class level.
  • Loading branch information
fwcd committed Jan 14, 2024
1 parent 0eacde1 commit ba6726a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/src/test/kotlin/org/javacs/kt/CompilerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ private class FileToEdit {

@JvmStatic @AfterClass
fun tearDown() {
compiler.close()
outputDirectory.delete()
}
}
Expand Down Expand Up @@ -89,8 +90,4 @@ private class FileToEdit {

assertThat(target.name, hasToString("intFunction"))
}

@After fun cleanUp() {
compiler.close()
}
}

0 comments on commit ba6726a

Please sign in to comment.