Improve quality of async timeout for afterAll spec
We found that this test was always passing and had strange interactions with the ordering of other specs. Rewriting it to explicitly finish the afterAll after a specified interval makes it fail correctly. [#73742528]
This commit is contained in:
committed by
Greg Cobb and Tim Jarratt
parent
5b397ff33e
commit
61bf9ac7d7
@@ -720,13 +720,15 @@ describe("Env integration", function() {
|
||||
});
|
||||
|
||||
env.addReporter(reporter);
|
||||
j$.DEFAULT_TIMEOUT_INTERVAL = 3000;
|
||||
|
||||
env.describe('my suite', function() {
|
||||
env.it('my spec', function() {
|
||||
});
|
||||
|
||||
env.afterAll(function(innerDone) {
|
||||
jasmine.clock().tick(4312);
|
||||
jasmine.clock().tick(3001);
|
||||
innerDone();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user