Skip to content

Commit bc76dce

Browse files
committed
ci: fix conflict in file name
1 parent f8578bd commit bc76dce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

databend-jdbc/src/test/java/com/databend/jdbc/TestFileTransfer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import java.sql.ResultSet;
1818
import java.sql.SQLException;
1919
import java.sql.Statement;
20+
import java.util.UUID;
2021
import java.util.logging.Level;
2122
import java.util.logging.Logger;
2223

@@ -54,7 +55,7 @@ private String generateRandomCSV(int lines) throws IOException {
5455
return "";
5556
}
5657
String tmpDir = System.getProperty("java.io.tmpdir");
57-
String csvPath = tmpDir + "/test.csv";
58+
String csvPath = tmpDir + "/" + UUID.randomUUID();
5859
try (FileWriter writer = new FileWriter(csvPath)) {
5960
for (int i = 0; i < lines; i++) {
6061
int num = (int) (Math.random() * 1000);
@@ -115,7 +116,7 @@ public void testFileTransfer()
115116
databendConnection.uploadStream(stageName, "jdbc/test/", fileInputStream, "test.csv", f.length(), false);
116117
downloaded = databendConnection.downloadStream(stageName, "jdbc/test/test.csv", false);
117118
byte[] arr = streamToByteArray(downloaded);
118-
System.out.println(arr.length);
119+
System.out.println("download size = " + arr.length);
119120
Assert.assertEquals(arr.length, f.length());
120121
} finally {
121122
if (downloaded != null) {

0 commit comments

Comments
 (0)