fix: run tests with 1 worker to avoid race conditions
This commit is contained in:
@@ -58,8 +58,9 @@ echo "📦 Using compose file: $COMPOSE_FILE"
|
||||
echo "🧹 Cleaning up previous containers..."
|
||||
docker compose -f "$COMPOSE_FILE" down -v 2>/dev/null || true
|
||||
|
||||
# Build frontend with correct API base URL (force no cache)
|
||||
# Build frontend with correct API base URL (force no cache, remove image first)
|
||||
echo "🔨 Building frontend..."
|
||||
docker rmi harborforge-test-frontend:dev 2>/dev/null || true
|
||||
docker compose -f "$COMPOSE_FILE" build --no-cache --build-arg VITE_API_BASE=http://backend:8000 frontend
|
||||
|
||||
# Start services
|
||||
@@ -87,7 +88,7 @@ echo "✅ Services ready!"
|
||||
|
||||
# Run test
|
||||
echo "🧪 Running test..."
|
||||
docker compose -f "$COMPOSE_FILE" run --rm test
|
||||
docker compose -f "$COMPOSE_FILE" run --rm -e WORKERS=1 test
|
||||
TEST_EXIT_CODE=$?
|
||||
|
||||
# Cleanup decision based on expose-port
|
||||
|
||||
Reference in New Issue
Block a user