Currently, I am in the process of writing a karma unit test script. Everything seems to be going smoothly, but unfortunately, I am encountering an error:
Chrome 39.0.2171 (Windows 7) Unit: common.services.PartialUpdater Should be loaded with all dependencies FAILED
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
Chrome 39.0.2171 (Windows 7): Executed 4 of 4 (1 FAILED) (5.025 secs / 5.006 secs)
The issue arises within this function:
describe("Unit: common.services.PartialUpdater", function() {
it("Should be loaded with all dependencies", function($rootScope) {
expect(true).toBe(true);
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
});
it("Should make a partial update when event is received", function() {
expect(true).toBe(true);
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
});
});
I am hesitant to increase the jasmine.default timeout interval further and am unsure of how else to resolve this issue. Does anyone have experience dealing with a similar problem?
Thank you