Skip to content

Commit

Permalink
test: Sleep a while to get DB update
Browse files Browse the repository at this point in the history
* Waiting for web server is not enough for stats_server. We need to wait for DB update before making a request

* We wait one more second after server started to ensure DB update is done

Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Jan 6, 2024
1 parent f8eedd1 commit 29a15a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ get() {

waitport() {
timeout 5 bash -c "while ! curl -s -f "http://localhost:${port}" > /dev/null; do sleep 0.1; done";
sleep 1
}

if [[ "${scenario}" =~ "exporter" ]]
Expand Down

0 comments on commit 29a15a8

Please sign in to comment.