Skip to content

Commit 969d92b

Browse files
committed
style(test): remove emojis and conditional messages from test script
1 parent e21e28f commit 969d92b

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

test.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ IMAGE="redis:alpine"
88

99
# Cleanup function to ensure we don't leave containers running
1010
cleanup() {
11-
echo "🧹 Cleaning up Redis container..."
11+
echo "Cleaning up Redis container..."
1212
docker stop $CONTAINER_NAME > /dev/null 2>&1 || true
1313
docker rm $CONTAINER_NAME > /dev/null 2>&1 || true
1414
}
1515

1616
# Trap EXIT, SIGINT, SIGTERM to run cleanup
1717
trap cleanup EXIT SIGINT SIGTERM
1818

19-
echo "🚀 Starting temporary Redis container from $IMAGE..."
19+
echo "Starting temporary Redis container from $IMAGE..."
2020
docker run --name $CONTAINER_NAME -p 6379:6379 -d $IMAGE
2121

22-
echo "Waiting for Redis to be ready..."
22+
echo "Waiting for Redis to be ready..."
2323
RETRIES=10
2424
until docker exec $CONTAINER_NAME redis-cli ping | grep -q PONG; do
2525
RETRIES=$((RETRIES - 1))
2626
if [ $RETRIES -le 0 ]; then
27-
echo "Redis failed to start."
27+
echo "Redis failed to start."
2828
exit 1
2929
fi
3030
sleep 1
3131
done
3232

33-
echo "Redis is online!"
33+
echo "Redis is online!"
3434

3535
# Function to run a test suite and determine if it REALLY failed
3636
run_suite() {
@@ -58,10 +58,10 @@ run_suite() {
5858
# If exit code is non-zero but no "failed" count found,
5959
# check if it was a total crash (no "passed" tests either)
6060
if ! grep -qi "passed" "$log_file"; then
61-
echo "⚠️ Suite in $dir crashed or failed to start."
61+
echo "Suite in $dir crashed or failed to start."
6262
failed=1
6363
else
64-
echo "ℹ️ Suite in $dir had exit code $exit_code, but all tests passed (likely teardown errors)."
64+
echo "Suite in $dir had exit code $exit_code, but all tests passed."
6565
fi
6666
fi
6767
fi
@@ -71,21 +71,21 @@ run_suite() {
7171
return $failed
7272
}
7373

74-
echo "📡 Running Server Tests..."
74+
echo "Running Server Tests..."
7575
if ! run_suite "server"; then
7676
SERVER_FAILED=1
7777
fi
7878

79-
echo "💻 Running Client Tests..."
79+
echo "Running Client Tests..."
8080
if ! run_suite "client"; then
8181
CLIENT_FAILED=1
8282
fi
8383

8484
if [ "$SERVER_FAILED" == "1" ] || [ "$CLIENT_FAILED" == "1" ]; then
85-
echo "Some tests actually failed."
85+
echo "Some tests actually failed."
8686
[ "$SERVER_FAILED" == "1" ] && echo " - Server tests had real failures"
8787
[ "$CLIENT_FAILED" == "1" ] && echo " - Client tests had real failures"
8888
exit 1
8989
else
90-
echo "🎉 All tests passed successfully (ignoring minor teardown warnings)!"
90+
echo "All tests passed successfully!"
9191
fi

0 commit comments

Comments
 (0)