Skip to content

Commit

Permalink
#30 - Trying to fix build in circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascvas committed Sep 5, 2018
1 parent e768642 commit b4b338d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/src/main/database/RefreshDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class RefreshDatabase {
.then(() => {
let result = Promise.resolve();
changeSet.forEach(fileName => {
result = result.then(this.execute(fileName, this.databaseManager))
result = result.then(() => this.execute(fileName, this.databaseManager))
});
return result;
})
Expand Down
6 changes: 3 additions & 3 deletions backend/src/test/rides/CreateRide.integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ let pickupTimeAndDateInUTC;

before(async () => {
databaseManager = new DatabaseManager();
mockDatabaseManager = new DatabaseManager();
connection = databaseManager.createConnection() ;
mockDatabaseManager = new DatabaseManager();
mockDatabaseManager.createConnection = () => connection;
mockDatabaseManager.closeConnection = () => null;
mockDatabaseManager.closeConnection = () => Promise.resolve();
});

after(async () => {
Expand All @@ -42,7 +42,7 @@ afterEach(async () => {
});

beforeEach(function setupData() {
loginData = {email: RandomUtils.randomEmail()}
loginData = {email: RandomUtils.randomEmail()};
pickupTimeAndDateInUTC = moment();
const clientEmail = `client.test.${Date.now()}@carpal.com`;
rideRequest = {
Expand Down

0 comments on commit b4b338d

Please sign in to comment.