Fix FIR tests after ee45aa6b
This commit is contained in:
@@ -48,10 +48,15 @@ abstract class BasicMap<K : Comparable<K>, V>(
|
||||
}
|
||||
|
||||
// avoid unsynchronized close
|
||||
internal fun close() {
|
||||
fun close() {
|
||||
storage.close()
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
fun closeForTest() {
|
||||
close()
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
fun dump(): String {
|
||||
return with(StringBuilder()) {
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ class FileSnapshotMapTest : TestWithWorkingDir() {
|
||||
@After
|
||||
override fun tearDown() {
|
||||
snapshotMap.flush(false)
|
||||
snapshotMap.close()
|
||||
snapshotMap.closeForTest()
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ class SourceToOutputFilesMapTest : TestWithWorkingDir() {
|
||||
@After
|
||||
override fun tearDown() {
|
||||
stofMap.flush(false)
|
||||
stofMap.close()
|
||||
stofMap.closeForTest()
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user