File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { DOWNLOADABLE_MYSQL_VERSIONS } from '../src/constants';
88import fs from 'fs'
99import fsPromises from 'fs/promises'
1010import os from 'os'
11+ import { randomUUID } from 'crypto' ;
1112
1213const usernames = [ 'root' , 'dbuser' ]
1314
@@ -18,7 +19,7 @@ const arch = process.arch === 'x64' || (process.platform === 'win32' && process.
1819const versionRequirement = process . env . VERSION_REQUIREMENT || '>0.0.0'
1920console . log ( 'Running versions test with versionRequirement:' , versionRequirement )
2021
21- const initSQLFilePath = `${ os . tmpdir ( ) } /mysqlmsn-init-file-${ crypto . randomUUID ( ) } `
22+ const initSQLFilePath = `${ os . tmpdir ( ) } /mysqlmsn-init-file-${ randomUUID ( ) } `
2223fs . writeFileSync ( initSQLFilePath , 'CREATE DATABASE initfromsqlfilepath;' , 'utf-8' )
2324
2425for ( const version of DOWNLOADABLE_MYSQL_VERSIONS . filter ( v => satisfies ( v , versionRequirement ) ) ) {
You can’t perform that action at this time.
0 commit comments