Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: syntax error: invalid arithmetic operator #1088

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions scripts/smokeTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ trap 'rm -f "$OUTFILE"' EXIT
echo "Using temporary output file: $OUTFILE"

# Add timeout configuration
TIMEOUT=30
INTERVAL=0.5
TIMEOUT=300 # Represent 30 seconds as 300 tenths of a second
INTERVAL=5 # Represent 0.5 seconds as 5 tenths of a second
TIMER=0

(
# Wait for the ready message with timeout
while true; do
if [[ $TIMER -ge $TIMEOUT ]]; then
echo "Error: Timeout waiting for application to start after $TIMEOUT seconds"
if (( TIMER >= TIMEOUT )); then
echo "Error: Timeout waiting for application to start after $((TIMEOUT / 10)) seconds"
kill $$
exit 1
fi
Expand All @@ -64,8 +64,8 @@ TIMER=0
break
fi

sleep $INTERVAL
TIMER=$(echo "$TIMER + $INTERVAL" | bc)
sleep 0.5
TIMER=$((TIMER + INTERVAL))
done
) | pnpm start --character=characters/trump.character.json > "$OUTFILE" &

Expand All @@ -89,4 +89,4 @@ if grep -q "Terminating and cleaning up resources..." "$OUTFILE"; then
else
echo "Error: The output does not contain the expected termination message."
exit 1
fi
fi
Loading