Fix syncing when network latency is present #4

Merged
schmelczer merged 58 commits from asch/fixes into master 2025-03-16 20:13:50 +00:00
Showing only changes of commit 8cdad79160 - Show all commits

21
frontend/test-client/run.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
set -e
npm run build
pids=()
for i in {1..10}; do
node dist/cli.js 2>&1 | tee "log_${i}.log" &
pids+=($!)
done
trap 'kill ${pids[@]} 2>/dev/null' SIGINT SIGTERM
for pid in ${pids[@]}; do
if ! wait $pid; then
kill ${pids[@]} 2>/dev/null
echo "Process $pid failed, see log_$(echo ${pids[@]} | tr ' ' '\n' | grep -n "^$pid$" | cut -d: -f1).log"
exit 1
fi
done