Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core: Ensuring semaphores are balanced when timeout occurs (#1376)
* Core: Ensuring semaphores are balanced when timeout occurs * Test: Loosening regex in tap-output for testing
- Loading branch information
1 parent
766db37
commit ba7453a
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
QUnit.module( "timeout", function() { | ||
QUnit.test( "first", function( assert ) { | ||
assert.timeout( 10 ); | ||
|
||
return new Promise( resolve => setTimeout( resolve, 20 ) ); | ||
} ); | ||
|
||
QUnit.test( "second", function( assert ) { | ||
return new Promise( resolve => setTimeout( resolve, 20 ) ) | ||
.then( () => { | ||
assert.ok( true, "This promise resolved" ); | ||
} ); | ||
} ); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters