Skip to content

Commit 54e2bdd

Browse files
authored
Update session_test.go
1 parent 51ede24 commit 54e2bdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chdb/session_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ func TestSessionCleanup(t *testing.T) {
5353
}
5454

5555
func TestQuery(t *testing.T) {
56-
session, _ := NewSession()
56+
path := filepath.Join(os.TempDir(), "chdb_test")
57+
defer os.RemoveAll(path)
58+
session, _ := NewSession(path)
5759
defer session.Cleanup()
5860

5961
session.Query("CREATE TABLE IF NOT EXISTS testtable (id UInt32) ENGINE = MergeTree() ORDER BY id;")

0 commit comments

Comments
 (0)