Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xxhZs committed Apr 8, 2024
1 parent caf8d28 commit a0b9f57
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ci/scripts/e2e-redis-sink-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ echo "yes" | redis-cli --cluster create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:

sqllogictest -p 4566 -d dev './e2e_test/sink/redis_cluster_sink.slt'

redis-cli -c --cluster call 127.0.0.1:7000 keys \* >> ./query_result_1.txt
redis-cli -c --cluster call 127.0.0.1:7000 keys \* >> ./wc -l

if cat ./query_result_1.txt | tr '\n' '\0' | xargs -0 -n1 bash -c '[[ "$0" == "{\"v1\":1}" || "$0" == "{\"v2\":2}" || "$0" == "{\"v3\":3}" ]]'; then
line_count=$(wc -l < query_result_1.txt)
if [ "$line_count" -eq 3 ]; then
echo "Redis sink check passed"
else
cat ./query_result_1.txt
echo "The output is not as expected."
exit 1
echo "The output is not as expected."
exit 1
fi

echo "--- Kill cluster"
Expand Down

0 comments on commit a0b9f57

Please sign in to comment.