Skip to content

Commit 04198c9

Browse files
change downloadBinaryOnce to true for versions test
1 parent b2c9bf9 commit 04198c9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/versions.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { coerce, satisfies } from 'semver';
55
import { randomUUID } from 'crypto';
66
import { ServerOptions } from '../types';
77
import { normalize } from 'path';
8+
import { DOWNLOADABLE_MYSQL_VERSIONS } from '../src/constants';
89

9-
const versions = ['5.7.20', '5.7.43', '8.0.11', '8.0.0', '8.0.30', '8.1.0', '8.4.0', '9.0.0']
1010
const usernames = ['root', 'dbuser']
1111

1212
const GitHubActionsTempFolder = process.platform === 'win32' ? 'C:\\Users\\RUNNER~1\\mysqlmsn' : '/tmp/mysqlmsn'
@@ -15,7 +15,7 @@ const binaryPath = normalize(GitHubActionsTempFolder + '/binaries')
1515

1616
jest.setTimeout(500_000);
1717

18-
for (const version of versions) {
18+
for (const version of DOWNLOADABLE_MYSQL_VERSIONS) {
1919
for (const username of usernames) {
2020
test(`running on version ${version} with username ${username}`, async () => {
2121
process.env.mysqlmsn_internal_DO_NOT_USE_deleteDBAfterStopped = String(!process.env.useCIDBPath)
@@ -25,7 +25,8 @@ for (const version of versions) {
2525
dbName: 'testingdata',
2626
username: username,
2727
logLevel: 'LOG',
28-
initSQLString: 'CREATE DATABASE mytestdb;'
28+
initSQLString: 'CREATE DATABASE mytestdb;',
29+
downloadBinaryOnce: true
2930
}
3031

3132
if (process.env.useCIDBPath) {

0 commit comments

Comments
 (0)