summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@protonmail.com>2022-01-05 09:19:30 -0800
committerSimon McVittie <smcv@debian.org>2022-02-08 18:57:25 +0000
commit25b354cb65aaf2de8f31ee81f4451e730a139da1 (patch)
treee0b1f20972155677fceeab721a865f2b898e9ac5
parent0059e2596b34ba60078124f218996cc313d64731 (diff)
downloadflatpak-25b354cb65aaf2de8f31ee81f4451e730a139da1.tar.gz
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. (cherry picked from commit 417e3949c0ecc314e69311e3ee8248320d3e3d52)
-rwxr-xr-xtests/test-history.sh2
1 files changed, 1 insertions, 1 deletions
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