From b24f14d4f32f836817a8aac3f09b0749e7fd9686 Mon Sep 17 00:00:00 2001 From: furo Date: Fri, 10 May 2024 17:48:44 +0200 Subject: [PATCH] Set sqlite3 `.timeout` in `integration_test.sh` --- scripts/integration_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/integration_test.sh b/scripts/integration_test.sh index 292862907..54b1d8cd8 100755 --- a/scripts/integration_test.sh +++ b/scripts/integration_test.sh @@ -314,7 +314,7 @@ then echo "[-] Error: demo playback of client demo in client 2 was not started/finished" fi -ranks="$(sqlite3 ddnet-server.sqlite < <(echo "select * from record_race;"))" +ranks="$(sqlite3 -cmd '.timeout 10000' ddnet-server.sqlite < <(echo "select * from record_race;"))" rank_time="$(echo "$ranks" | awk -F '|' '{ print "player:", $2, "time:", $4, "cps:", $6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22,$23,$24,$25,$26,$27,$28 }')" expected_times="\ player: client2 time: 1020.98 cps: 0.02 0.1 0.2 0.26 0.32 600.36 600.42 600.46 600.5 1020.54 1020.58 1020.6 1020.64 1020.66 1020.7 1020.72 1020.76 1020.78 1020.8 1020.84 1020.86 1020.88 1020.9