Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Nov 10, 2024
1 parent 6fedf29 commit bdfb92b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class ZipHelperSpec extends AnyWordSpec with Matchers with BeforeAndAfterEach wi
var tmp: Path = _
val toDelete = scala.collection.mutable.ListBuffer[Path]()

override def beforeEach: Unit = {
override def beforeEach(): Unit = {
tmp = Files createTempDirectory "_sbt-native-packager"
toDelete += tmp
}

override def afterAll: Unit =
override def afterAll(): Unit =
toDelete foreach { dir =>
scala.util.Try {
Files.walkFileTree(dir, new DeleteDirectoryVisitor)
Expand Down

0 comments on commit bdfb92b

Please sign in to comment.