You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ci/x.test.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,8 @@ test('DB creation throws when MySQL fails to initialise and X is force enabled',
82
82
logLevel: 'LOG',
83
83
xPort: serverAddress.port,// Use a port that is already in use to get X to fail
84
84
xEnabled: 'FORCE',
85
-
initSQLString: 'SELECT 2+2;'
85
+
initSQLString: 'SELECT 2+2;',
86
+
portRetries: 3
86
87
}
87
88
88
89
letthrown: string|boolean=false;
@@ -98,5 +99,5 @@ test('DB creation throws when MySQL fails to initialise and X is force enabled',
98
99
server.close()
99
100
})
100
101
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.')
0 commit comments