Skip to content

Commit 85dd672

Browse files
committed
update output log level, output log on error, increase timeout to 2 minutes
1 parent 1cb35df commit 85dd672

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/smokeTests.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ trap 'rm -f "$OUTFILE"' EXIT
4848
echo "Using temporary output file: $OUTFILE"
4949

5050
# Add timeout configuration
51-
TIMEOUT=600 # 60 seconds represented as 600 tenths of a second
51+
TIMEOUT=1200 # 60 seconds represented as 600 tenths of a second
5252
INTERVAL=5 # Represent 0.5 seconds as 5 tenths of a second
5353
TIMER=0
5454

5555
# Start the application and capture logs in the background
56-
pnpm start --character=characters/trump.character.json > "$OUTFILE" 2>&1 &
56+
# 27 includes success and that's what the level we're looking for is
57+
DEFAULT_LOG_LEVEL=success pnpm start --character=characters/trump.character.json > "$OUTFILE" 2>&1 &
5758

5859
APP_PID=$! # Capture the PID of the background process
5960

@@ -62,6 +63,7 @@ APP_PID=$! # Capture the PID of the background process
6263
while true; do
6364
if (( TIMER >= TIMEOUT )); then
6465
>&2 echo "ERROR: Timeout waiting for application to start after $((TIMEOUT / 10)) seconds"
66+
cat $OUTFILE
6567
kill $APP_PID # Terminate the pnpm process
6668
exit 1
6769
fi

0 commit comments

Comments
 (0)