From 70e96ec21df6dbb9027b1cb96749c4a461f87616 Mon Sep 17 00:00:00 2001 From: Wes McKinney Date: Tue, 12 Nov 2024 17:02:40 +0900 Subject: [PATCH] Make temp table name in positron-duckdb tests more random to avoid sporadic 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. --- extensions/positron-duckdb/src/test/extension.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/positron-duckdb/src/test/extension.test.ts b/extensions/positron-duckdb/src/test/extension.test.ts index 041ce5adc43..cfd0eeeb42b 100644 --- a/extensions/positron-duckdb/src/test/extension.test.ts +++ b/extensions/positron-duckdb/src/test/extension.test.ts @@ -68,7 +68,7 @@ async function dxExec(rpc: DataExplorerRpc): Promise { } function makeTempTableName(): string { - return `positron_${randomUUID().slice(0, 5)}`; + return `positron_${randomUUID().replace(/-/g, '')}`; } type InsertColumn = { name: string; type: string; values: Array };