mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Fixes flakey test: it should resolve after waiting
Change-Id: I6d63fa2d316af296401eaa3dabee10375e73108b
This commit is contained in:
parent
ec4858119f
commit
7ff66a50b0
|
@ -5,6 +5,6 @@ QUnit.module( 'ext.popups/wait' );
|
|||
QUnit.test( 'it should resolve after waiting', function ( assert ) {
|
||||
const then = Date.now();
|
||||
return wait( 150 ).then( () => {
|
||||
assert.true( ( Date.now() - then ) > 150, 'It waits for the given duration' );
|
||||
assert.true( ( Date.now() - then ) >= 150, 'It waits for the given duration' );
|
||||
} );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue