Skip to content
Merged
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo: required
sudo: false
dist: trusty
language: node_js
node_js:
Expand Down
9 changes: 0 additions & 9 deletions test/functional/databases.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ describe('#databases', function() {
});
});

after(function(done) {
dataService.connect(function() {
dataService.dropDatabase('music', function() {
dataService.disconnect();
done();
});
});
});

context('when the escape key is pressed', function() {
it('closes the create databases modal', function() {
return client
Expand Down
2 changes: 0 additions & 2 deletions test/functional/schema.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ describe('#schema', function() {

it('shows a schema on refresh', function() {
return client
.clickDatabaseInSidebar('music')
.waitForSidebar('collection')
.goToCollection('music', 'artists')
.clickApplyFilterButtonFromSchemaTab()
.waitForStatusBar()
Expand Down
6 changes: 4 additions & 2 deletions test/functional/support/spectron-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ function launchCompass() {
* Call quitCompass in afterEach for all UI tests:

* @param {Object} app - The running application
* @param {Function} done - The callback to execute when finished.
*
* @returns {Promise} Promise that resolves when app stops.
* @returns {Promise} Promise that resolves when app stops or is undefined.
*/
function quitCompass(app) {
if (app === undefined || app === null) {
return Promise.resolve();
}
return app.quit();
}

Expand Down