Fixed flaky spec

This commit is contained in:
Steve Gravrock
2022-05-19 16:39:48 -07:00
parent f7eaa5ec29
commit 856a040a2d

View File

@@ -1320,7 +1320,7 @@ describe('Env integration', function() {
}); });
env.addReporter(reporter); env.addReporter(reporter);
jasmineUnderTest.DEFAULT_TIMEOUT_INTERVAL = 5; jasmineUnderTest.DEFAULT_TIMEOUT_INTERVAL = 500;
env.beforeAll(function() { env.beforeAll(function() {
clock.install(); clock.install();
@@ -1331,7 +1331,7 @@ describe('Env integration', function() {
}); });
env.it('spec that should not time out', function(innerDone) { env.it('spec that should not time out', function(innerDone) {
clock.tick(6); clock.tick(1000);
expect(true).toEqual(true); expect(true).toEqual(true);
jasmine.debugLog('Calling realSetTimeout in spec'); jasmine.debugLog('Calling realSetTimeout in spec');
realSetTimeout(function() { realSetTimeout(function() {