Saurabh
Saurabh

Reputation: 41

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

•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 }

Upvotes: 2

Views: 1183

Answers (1)

Linh Pham
Linh Pham

Reputation: 3025

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);

Upvotes: 4

Related Questions