Skip to content

Commit f6636e0

Browse files
committed
Fix TestOpenSQLiteDB failing on Windows CI
Set extension_directory explicitly to avoid DuckDB failing to compute it when workspace and home directory are on different drives. Use os.MkdirTemp instead of t.TempDir to avoid cleanup failure from DuckDB holding extension file handles.
1 parent a6c099b commit f6636e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bindings_extensions_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ func TestOpenSQLiteDB(t *testing.T) {
2828
t.Fail()
2929
}
3030

31+
extDir, err := os.MkdirTemp("", "duckdb-ext-*")
32+
require.NoError(t, err)
33+
SetConfig(config, "extension_directory", extDir)
34+
3135
var db Database
3236
defer Close(&db)
3337

0 commit comments

Comments
 (0)