Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
datastore integration tests: increase waitFor timeout
  • Loading branch information
rogemita committed Dec 26, 2013
1 parent 639e6bf commit f4c9410
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/datastoreSpec.js
Expand Up @@ -2,6 +2,8 @@ define(["sugar-web/bus", "sugar-web/env", "sugar-web/datastore"], function (bus,

'use strict';

var defaultTimeoutInterval = jasmine.getEnv().defaultTimeoutInterval;

describe("Ensure the datastore object has an objectId", function () {

// FIXME does not work in standalone mode
Expand Down Expand Up @@ -33,10 +35,14 @@ define(["sugar-web/bus", "sugar-web/env", "sugar-web/datastore"], function (bus,
describe("datastore object", function () {

beforeEach(function () {
// FIXME: due to db initialization,
// the very first save() call may take a while
jasmine.getEnv().defaultTimeoutInterval = 10000;
bus.listen();
});

afterEach(function () {
jasmine.getEnv().defaultTimeoutInterval = defaultTimeoutInterval;
bus.close();
});

Expand Down Expand Up @@ -125,10 +131,14 @@ define(["sugar-web/bus", "sugar-web/env", "sugar-web/datastore"], function (bus,
describe("datastore", function () {

beforeEach(function () {
// FIXME: due to db initialization,
// the very first save() call may take a while
jasmine.getEnv().defaultTimeoutInterval = 10000;
bus.listen();
});

afterEach(function () {
jasmine.getEnv().defaultTimeoutInterval = defaultTimeoutInterval;
bus.close();
});

Expand Down

0 comments on commit f4c9410

Please sign in to comment.