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