2
votes

•Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

I am getting above error even though i have increases the default Timeout Interval in config file.

jasmineNodeOpts: { defaultTimeoutInterval: 40000 }

1
Can you provide an example spec and configuration so we can help debug this? - Nick Tomlin

1 Answers

4
votes

There are serveral way to config this timeout. But it is depend on the version of Jasmine. So to ensure it will worked.

// your main protractor config file
onPrepare: function(){
  // make your own configuration
  browser.param.jasmineTimeout = 40000;
}


// in your suites, do an override to JASMINE timeout configuration
it("something should run...", function(){...}, browser.param.jasmineTimeout);