Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/3704#discussion_r21851601
--- Diff:
streaming/src/test/scala/org/apache/spark/streaming/rdd/WriteAheadLogBackedBlockRDDSuite.scala
---
@@ -38,36 +38,42 @@ class WriteAheadLogBackedBlockRDDSuite extends FunSuite
with BeforeAndAfterAll {
var blockManager: BlockManager = null
var dir: File = null
+ override def beforeEach(): Unit = {
+ dir = Files.createTempDir()
+ }
+
+ override def afterEach(): Unit = {
+ dir.delete()
--- End diff --
This doesn't work if the dir is not empty. You could use
`Utils.createTempDir()` and, optionally, `Utils.deleteRecursively()` (since
`createTempDir` already takes care of that for you).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]