Fix FIR tests after ee45aa6b

This commit is contained in:
Aleksei.Cherepanov
2021-06-01 13:37:56 +03:00
parent 3293a888ca
commit b1ab597616
3 changed files with 8 additions and 3 deletions
@@ -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()) {
@@ -31,7 +31,7 @@ class FileSnapshotMapTest : TestWithWorkingDir() {
@After
override fun tearDown() {
snapshotMap.flush(false)
snapshotMap.close()
snapshotMap.closeForTest()
super.tearDown()
}
@@ -29,7 +29,7 @@ class SourceToOutputFilesMapTest : TestWithWorkingDir() {
@After
override fun tearDown() {
stofMap.flush(false)
stofMap.close()
stofMap.closeForTest()
super.tearDown()
}