Skip to content

Commit

Permalink
Merge pull request #79 from 4Catalyzer/fix-tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
taion authored Apr 10, 2017
2 parents a92e476 + 766ac8f commit 7b8c477
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 7b8c477

Please sign in to comment.