Skip to content

Commit 53ff2d5

Browse files
committed
chore: add sleep 1 after starting balatro in Makefile
1 parent f4bb7f1 commit 53ff2d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ test: ## Run tests with single Balatro instance (auto-starts if needed)
7272
@if ! $(BALATRO_SCRIPT) --status | grep -q "12346"; then \
7373
echo "Starting Balatro on port 12346..."; \
7474
$(BALATRO_SCRIPT) --headless --fast -p 12346; \
75+
sleep 1; \
7576
fi
7677
$(PYTEST)
7778

@@ -81,6 +82,7 @@ test-parallel: ## Run tests in parallel on 4 instances (auto-starts if needed)
8182
if [ "$$running_count" -ne 4 ]; then \
8283
echo "Starting Balatro instances on ports: $(TEST_PORTS)"; \
8384
$(BALATRO_SCRIPT) --headless --fast -p $(word 1,$(TEST_PORTS)) -p $(word 2,$(TEST_PORTS)) -p $(word 3,$(TEST_PORTS)) -p $(word 4,$(TEST_PORTS)); \
85+
sleep 1; \
8486
fi
8587
$(PYTEST) -n 4 --port $(word 1,$(TEST_PORTS)) --port $(word 2,$(TEST_PORTS)) --port $(word 3,$(TEST_PORTS)) --port $(word 4,$(TEST_PORTS)) tests/lua/
8688

0 commit comments

Comments
 (0)