Skip to content

Commit faed73c

Browse files
Merge branch 'main' into 242-database-fails-to-be-killed-and-deleted-on-windows-with-node-23x
2 parents daf49ef + bec9372 commit faed73c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/ci/x.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ test('DB creation throws when MySQL fails to initialise and X is force enabled',
8282
logLevel: 'LOG',
8383
xPort: serverAddress.port, // Use a port that is already in use to get X to fail
8484
xEnabled: 'FORCE',
85-
initSQLString: 'SELECT 2+2;'
85+
initSQLString: 'SELECT 2+2;',
86+
portRetries: 3
8687
}
8788

8889
let thrown: string | boolean = false;
@@ -98,5 +99,5 @@ test('DB creation throws when MySQL fails to initialise and X is force enabled',
9899
server.close()
99100
})
100101

101-
expect(thrown).toBe('The port has been retried 10 times and a free port could not be found.\nEither try again, or if this is a common issue, increase options.portRetries.')
102+
expect(thrown).toBe('The port has been retried 3 times and a free port could not be found.\nEither try again, or if this is a common issue, increase options.portRetries.')
102103
})

0 commit comments

Comments
 (0)