Skip to content

Commit

Permalink
fix: include empty test file
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Aug 20, 2024
1 parent f1b6b1a commit 71b6547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.google.cloud.jdbc.quickperf;

import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

Expand Down Expand Up @@ -99,7 +100,6 @@ public static void setup() throws Exception {
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);

File file = new File(TEST_FILE);
assertTrue(file.createNewFile());
mapper.writeValue(file, projectConfig);
}

Expand All @@ -126,9 +126,9 @@ public static void cleanup() throws IOException {
// Close all Spanner connections.
SpannerPool.closeSpannerPool();

// delete test file
// Write an empty test file
Path path = Paths.get(TEST_FILE);
Files.delete(path);
Files.newBufferedWriter(path, TRUNCATE_EXISTING).close();

// Stop the emulator.
emulator.stop();
Expand Down
Empty file.

0 comments on commit 71b6547

Please sign in to comment.