Skip to content

Commit 013a1c4

Browse files
committed
confirm specs fail if no ES connection is established
1 parent e027f10 commit 013a1c4

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

config.js.ci

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ module.exports = {
77
currentVersionURL: "http://localhost:4000/v1",
88
elasticsearch: {
99
host: "https://localhost:9200",
10-
apiKey: INAT_ES_API_KEY,
11-
tlsAllowUnauthorized: true
10+
apiKey: INAT_ES_API_KEY
1211
},
1312
database: {
1413
user: "postgres",

lib/test_helper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ testHelper.waitForPG = async numberOfAttempts => {
2121
}
2222
numberOfAttempts -= 1;
2323
if ( numberOfAttempts === 0 ) {
24-
process.exit( );
24+
process.exit( 1 );
2525
}
2626
return testHelper.waitForPG( numberOfAttempts );
2727
};
@@ -37,11 +37,11 @@ testHelper.waitForES = async numberOfAttempts => {
3737
}
3838
}
3939
} catch ( e ) {
40-
console.log( e );
40+
// Do nothing
4141
}
4242
numberOfAttempts -= 1;
4343
if ( numberOfAttempts === 0 ) {
44-
process.exit( );
44+
process.exit( 1 );
4545
}
4646
return testHelper.waitForES( numberOfAttempts );
4747
};

0 commit comments

Comments
 (0)