@@ -167,7 +167,9 @@ public function testExecAfterPreviousFactoryRejectsUnderlyingDatabaseWillCreateN
167167            new  Promise (function  () { })
168168        );
169169
170-         $ this db ->exec ('CREATE ' );
170+         $ promise$ this db ->exec ('CREATE ' );
171+         $ promisethen (null , $ this expectCallableOnce ()); // avoid reporting unhandled rejection 
172+ 
171173        $ deferredreject ($ error
172174
173175        $ this db ->exec ('CREATE ' );
@@ -392,9 +394,11 @@ public function testQueryAfterPreviousFactoryRejectsUnderlyingDatabaseWillCreate
392394        $ this factory ->expects ($ this exactly (2 ))->method ('open ' )->willReturnOnConsecutiveCalls (
393395            $ deferredpromise (),
394396            new  Promise (function  () { })
395-             );
397+         );
398+ 
399+         $ promise$ this db ->query ('CREATE ' );
400+         $ promisethen (null , $ this expectCallableOnce ()); // avoid reporting unhandled rejection 
396401
397-         $ this db ->query ('CREATE ' );
398402        $ deferredreject ($ error
399403
400404        $ this db ->query ('CREATE ' );
@@ -408,7 +412,7 @@ public function testQueryAfterPreviousUnderlyingDatabaseAlreadyClosedWillCreateN
408412        $ this factory ->expects ($ this exactly (2 ))->method ('open ' )->willReturnOnConsecutiveCalls (
409413            \React \Promise \resolve ($ client
410414            new  Promise (function  () { })
411-              );
415+         );
412416
413417        $ this db ->query ('CREATE ' );
414418        $ clientemit ('close ' );
@@ -433,7 +437,7 @@ public function testQueryAfterQueryWillNotStartIdleTimerWhenFirstQueryResolves()
433437        $ clientexpects ($ this exactly (2 ))->method ('query ' )->willReturnOnConsecutiveCalls (
434438            $ deferredpromise (),
435439            new  Promise (function  () { })
436-              );
440+         );
437441
438442        $ this factory ->expects ($ this once ())->method ('open ' )->willReturn (\React \Promise \resolve ($ client
439443
@@ -451,7 +455,7 @@ public function testQueryAfterQueryWillStartAndCancelIdleTimerWhenSecondQuerySta
451455        $ clientexpects ($ this exactly (2 ))->method ('query ' )->willReturnOnConsecutiveCalls (
452456            $ deferredpromise (),
453457            new  Promise (function  () { })
454-              );
458+         );
455459
456460        $ this factory ->expects ($ this once ())->method ('open ' )->willReturn (\React \Promise \resolve ($ client
457461
@@ -524,7 +528,9 @@ public function testCloseAfterExecWillEmitCloseWithoutErrorWhenUnderlyingDatabas
524528        $ this db ->on ('error ' , $ this expectCallableNever ());
525529        $ this db ->on ('close ' , $ this expectCallableOnce ());
526530
527-         $ this db ->exec ('CREATE ' );
531+         $ promise$ this db ->exec ('CREATE ' );
532+         $ promisethen (null , $ this expectCallableOnce ()); // avoid reporting unhandled rejection 
533+ 
528534        $ this db ->close ();
529535    }
530536
0 commit comments