Skip to content

Commit 9e2c708

Browse files
committed
Fix tests
1 parent b8bca7b commit 9e2c708

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ test {
103103
useJUnitPlatform()
104104
testLogging {
105105
events "passed", "skipped", "failed"
106+
showStandardStreams = true
107+
setExceptionFormat("full")
106108
}
107109
}
108110

src/main/java/org/radarbase/hdfs/data/FileCacheStore.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ constructor(private val factory: FileStoreFactory, private val accountant: Accou
117117
out.write(schema.toString(true).toByteArray())
118118
}
119119
storage.store(tmpSchemaPath, schemaPath)
120-
Files.delete(tmpSchemaPath)
121120
}
122121
}
123122
}

src/main/java/org/radarbase/hdfs/data/S3StorageDriver.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import software.amazon.awssdk.services.s3.model.NoSuchKeyException
2222
import java.io.IOException
2323
import java.io.InputStream
2424
import java.net.URI
25+
import java.nio.file.Files
2526
import java.nio.file.Path
2627

2728
class S3StorageDriver : StorageDriver {
@@ -71,6 +72,7 @@ class S3StorageDriver : StorageDriver {
7172
@Throws(IOException::class)
7273
override fun store(localPath: Path, newPath: Path) {
7374
awsClient.putObject({ it.bucket(bucket).key(newPath.toString()) }, localPath)
75+
Files.delete(localPath)
7476
}
7577

7678
@Throws(IOException::class)

0 commit comments

Comments
 (0)