Skip to content

Commit

Permalink
wait for api for 2 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
dianabarsan committed Nov 20, 2024
1 parent 284fe01 commit 547a96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ const getUserSettings = ({ contactId, name }) => {
};

const listenForApi = async () => {
let retryCount = 100;
let retryCount = 120;
do {
try {
console.log('Checking API');
Expand All @@ -859,7 +859,7 @@ const listenForApi = async () => {
await delayPromise(1000);
}
} while (--retryCount > 0);
throw new Error('API failed to start after 100 seconds');
throw new Error('API failed to start after 2 minutes');
};

const dockerComposeCmd = (params) => {
Expand Down

0 comments on commit 547a96a

Please sign in to comment.