File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ describe('basic query', () => {
254
254
} ) ;
255
255
256
256
it ( 'timeout' , function ( done ) {
257
- this . timeout ( 10000 ) ;
257
+ this . timeout ( 20000 ) ;
258
258
const initTime = Date . now ( ) ;
259
259
const query =
260
260
'select c1.* from information_schema.columns as c1, ' +
@@ -268,7 +268,7 @@ describe('basic query', () => {
268
268
} ) ;
269
269
270
270
it ( 'timeout with parameter' , function ( done ) {
271
- this . timeout ( 10000 ) ;
271
+ this . timeout ( 20000 ) ;
272
272
const initTime = Date . now ( ) ;
273
273
const query =
274
274
'select c1.* from information_schema.columns as c1, ' +
@@ -284,7 +284,7 @@ describe('basic query', () => {
284
284
const testTimeout = ( done , initTime , err ) => {
285
285
if ( shareConn . info . isMariaDB ( ) && shareConn . info . hasMinVersion ( 10 , 1 , 2 ) ) {
286
286
const elapse = Date . now ( ) - initTime ;
287
- assert . isOk ( elapse < 3000 , 'elapse time was ' + elapse + ' but must be less around 100' ) ;
287
+ assert . isOk ( elapse < 5000 , 'elapse time was ' + elapse + ' but must be less around 100' ) ;
288
288
assert . isTrue (
289
289
err . message . includes ( 'Query execution was interrupted (max_statement_time exceeded)' )
290
290
) ;
You can’t perform that action at this time.
0 commit comments