android testsuite fixes

This commit is contained in:
Jonathan Lipps
2014-09-18 12:43:24 -07:00
parent 0e75f40eb4
commit 2818e6a3fb
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ module.exports.spacesTest = function (desired) {
});
});
after(function () { return session.tearDown(this.currentTest.state === 'passed'); });
after(function (done) { session.tearDown(this.currentTest.state === 'passed').nodeify(done); });
it('should work with spaces in app path', function (done) {
session = initSession(_.defaults({'app': newAppPath}, desired));

View File

@@ -24,7 +24,7 @@ describe('should not launch app without internet permission', function () {
.setUp(name).catch(function (err) {
err.data.should.include("INTERNET");
throw err;
}).should.be.rejectedWith(/The environment you requested was unavailable./)
}).should.eventually.be.rejectedWith(/The environment you requested was unavailable./)
.nodeify(done);
});
});