Skip to content

Commit e91a984

Browse files
committed
[misc] CI: maxscale test version race condition correction
1 parent 1cd9696 commit e91a984

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/base.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function isMaxscale(shareConn) {
2828
}
2929

3030
export function isMaxscaleMinVersion(shareConn, major, minor, patch) {
31-
if (!globalThis.maxscaleVersion) {
31+
if (!globalThis.maxscaleVersionJson) {
3232
const maxscaleVersion = shareConn.info.maxscaleVersion;
3333
if (!maxscaleVersion) {
3434
// maxscale before 23.08
@@ -63,14 +63,14 @@ export function isMaxscaleMinVersion(shareConn, major, minor, patch) {
6363
}
6464
//serverVersion finished by number like "5.5.57", assign patchVersion
6565
if (type === 2) maxscalePatch = val;
66-
globalThis.maxscaleVersion = {
66+
globalThis.maxscaleVersionJson = {
6767
major: maxscaleMajor,
6868
minor: maxscaleMinor,
6969
patch: maxscalePatch
7070
};
7171
}
7272

73-
let ver = globalThis.maxscaleVersion;
73+
let ver = globalThis.maxscaleVersionJson;
7474
return (
7575
ver.major > major ||
7676
(ver.major === major && ver.minor > minor) ||

0 commit comments

Comments
 (0)