Fix smoke tests: update movement for new spawn point and resolve Test 6 timeout
All checks were successful
Smoke tests / Build and smoke test (push) Successful in 1m49s

This commit is contained in:
AI Agent
2026-03-17 09:53:01 -06:00
parent dd517d8851
commit ebdfa16aa5

View File

@@ -31,6 +31,8 @@ ssh_mud smoketest@localhost <<'EOF'
1
look
stats
go south
go down
go north
talk barkeep
go south
@@ -73,17 +75,18 @@ EOF
# Test 6: Tick-based combat (connect and wait for ticks)
./target/debug/mudtool -d "$TEST_DB" settings set registration_open true
./target/debug/mudtool -d "$TEST_DB" players delete smoketest
ssh_mud smoketest@localhost <<'EOF'
1
1
go south
attack thief
EOF
sleep 8
ssh_mud smoketest@localhost <<'EOF'
stats
quit
EOF
# Use subshell to pipe commands with a delay between them while staying connected
(
echo "1"
echo "1"
echo "go south"
echo "go down"
echo "go south"
echo "attack thief"
sleep 8
echo "stats"
echo "quit"
) | ssh_mud smoketest@localhost
# Cleanup (trap handles server kill)
./target/debug/mudtool -d "$TEST_DB" settings set registration_open true