Menus: Increase timeout for QUnit wpNavMenu trigger tests.
Fix an (intermittent) issue where the final assertion verifying all hooks have been triggered ran too early, resulting in the test failing. Fixes #31218. git-svn-id: https://develop.svn.wordpress.org/trunk@41675 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
42a74c2aef
commit
f2eb141e77
@ -5,7 +5,7 @@
|
||||
eventsExpected = 3,
|
||||
eventsFired = 0;
|
||||
|
||||
// Fail if we don't see the expected number of events triggered in 1500 ms.
|
||||
// Fail if we don't see the expected number of events triggered in 3 seconds.
|
||||
setTimeout( function() {
|
||||
// QUnit may load this file without running it, in which case `assert`
|
||||
// will never be set to `assertPassed` below.
|
||||
@ -14,7 +14,7 @@
|
||||
eventsExpected,
|
||||
eventsExpected + ' wpNavMenu events should fire.'
|
||||
);
|
||||
}, 1500 );
|
||||
}, 3000 );
|
||||
|
||||
QUnit.test( 'Testing wpNavMenu event triggers.', function( assertPassed ) {
|
||||
assert = assertPassed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user