Skip to content

Commit

Permalink
Run specs with docker compose - add tests related to user email/IP
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-morin authored and sylvain-morin committed Oct 4, 2023
1 parent ec5ccbb commit 88304d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ function initializeDb() {
exports.mochaGlobalSetup = async function () {
expect( process.env.NODE_ENV ).to.eq( "test" );

console.log( "\n\nINITIALIZING TEST ENVIRONMENT\n\n" );

if ( !process.env.DB_ALREADY_INITIALIZED ) {
initializeDb( );
}

// Wait for Postgres
console.log( "Waiting for Postgres..." );
await testHelper.waitForPG( 100 );
Expand All @@ -37,12 +43,6 @@ exports.mochaGlobalSetup = async function () {
console.log( "Waiting for ElasticSearch..." );
await testHelper.waitForES( 100 );

console.log( "\n\nINITIALIZING TEST ENVIRONMENT\n\n" );

if ( !process.env.DB_ALREADY_INITIALIZED ) {
initializeDb( );
}

console.log( "Creating ES indices" );
await testHelper.createIndices( );
console.log( "Loading ES fixtures" );
Expand Down

0 comments on commit 88304d4

Please sign in to comment.