Skip to content

Commit

Permalink
Make temp table name in positron-duckdb tests more random to avoid sp…
Browse files Browse the repository at this point in the history
…oradic extension test failures (#5328)

Attempts to address #5308 by making temporary table names in the DuckDB
catalog more random. If this does not fix the issue, then I'm not sure
what else it might be, but we can see if the error recurs elsewhere.
  • Loading branch information
wesm authored Nov 12, 2024
1 parent 83d5161 commit 70e96ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/positron-duckdb/src/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function dxExec(rpc: DataExplorerRpc): Promise<any> {
}

function makeTempTableName(): string {
return `positron_${randomUUID().slice(0, 5)}`;
return `positron_${randomUUID().replace(/-/g, '')}`;
}

type InsertColumn = { name: string; type: string; values: Array<string> };
Expand Down

0 comments on commit 70e96ec

Please sign in to comment.