Skip to content

Commit

Permalink
Tests: Add a delay for the minio-server to initialize before using it
Browse files Browse the repository at this point in the history
This should help fix flakiness we're seeing with webresources where
tests fail because we try to create the bucket before the minio server
has initialized and therefore it causes test failures. This also adds
a `set -e` so that if the command does still fail it should fail fast
rather than after trying to run all the tests, and make it clearer
where the error actually originates from

Change-type: patch
  • Loading branch information
Page- committed Oct 4, 2024
1 parent bba3f00 commit fbf0c00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ services:
- minio-server
entrypoint: >
/bin/sh -c "
set -e;
sleep 1;
/usr/bin/mc config host add minio-server http://minio-server:9000 USERNAME PASSWORD;
/usr/bin/mc mb --ignore-existing minio-server/balena-pine-web-resources;
exit 0;
Expand Down

0 comments on commit fbf0c00

Please sign in to comment.