From d81b3caea0cfd35bb2e5a49dd45a35f5fe615ea6 Mon Sep 17 00:00:00 2001 From: Phaedrus Leeds Date: Wed, 5 Jan 2022 09:19:30 -0800 Subject: test-history.sh: Fix flakiness by moving sleep The history test fails sometimes in the CI due to the remote add operation being missing from the history command's output: + diff history-log - 0a1 > add remote system (history-installation) test-repo Presumably this is due to that operation happening in the same second that is passed to --since, so move the sleep statement to make sure a second passes before we do anything. --- tests/test-history.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-history.sh b/tests/test-history.sh index 78fbf8ba..baa89350 100755 --- a/tests/test-history.sh +++ b/tests/test-history.sh @@ -13,8 +13,8 @@ skip_revokefs_without_fuse echo "1..1" -sleep 1 HISTORY_START_TIME=$(date +"%Y-%m-%d %H:%M:%S") +sleep 1 mkdir -p ${TEST_DATA_DIR}/system-history-installation mkdir -p ${FLATPAK_CONFIG_DIR}/installations.d -- cgit v1.2.1