Skip to content

Commit 528934c

Browse files
committed
Fix FileHelper tests
1 parent 92d9599 commit 528934c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/scala/codacy/dockerApi/utils/FileHelperTest.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ class FileHelperTest extends FlatSpec with Matchers {
5252
}
5353

5454
"FileHelper" should "createFile" in {
55-
val pathString: String = "filename.ext"
55+
val pathString: String = "/tmp/fileHelperFilename.ext"
56+
new java.io.File(pathString).delete()
5657

5758
val file = FileHelper.createFile(pathString, "foo").toString
58-
5959
io.Source.fromFile(file).mkString should be("foo")
60-
61-
new java.io.File(file).delete()
6260
}
6361
}

0 commit comments

Comments
 (0)