fix(grid-db): use crypto.randomUUID for temp test directories

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/cc375d32-fdd8-44ee-87aa-3b52e9320ea9
This commit is contained in:
copilot-swe-agent[bot] 2026-03-26 05:42:33 +00:00 committed by GitHub
parent bbb7839ef5
commit d086ade8d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ function assert(condition, message) {
* @returns {string}
*/
function makeTempDir(suffix) {
const dir = path.join(os.tmpdir(), `griddb-test-${suffix}-${Date.now()}`);
const { randomUUID } = require('crypto');
const dir = path.join(os.tmpdir(), `griddb-test-${suffix}-${randomUUID().slice(0, 8)}`);
fs.mkdirSync(dir, { recursive: true });
return dir;
}