Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Apr 10, 2017
1 parent a92e476 commit 766ac8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/ResolverUtils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ describe('ResolverUtils', () => {

it('should return false for unresolved promises', async () => {
expect(isResolved(
await checkResolved(new Promise(setTimeout)),
await checkResolved(
// FIXME: This is not quite the right condition, but the test is
// flaky on Travis with a 0-delay timeout.
new Promise((resolve) => { setTimeout(resolve, 10); }),
),
)).toBe(false);

expect(isResolved(
Expand Down

0 comments on commit 766ac8f

Please sign in to comment.