Skip to content

Commit

Permalink
Make pending requests test more specific
Browse files Browse the repository at this point in the history
This avoids the issue detailed in emberjs#458.
  • Loading branch information
wagenet committed Nov 2, 2018
1 parent af493d5 commit 74e2fe2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/unit/teardown-context-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ module('teardownContext', function(hooks) {

await teardownContext(context);

assert.ok(
isSettled(),
`out of balance xhr semaphores are cleaned up on teardown: ${getSettledState()}`
);
let state = getSettledState();
assert.equal(state.hasPendingRequests, false, "hasPendingRequests is false");
assert.equal(state.pendingRequestCount, 0, "pendingRequestCount is 0");
});
}
});

0 comments on commit 74e2fe2

Please sign in to comment.