diff options
| author | Phaedrus Leeds <mwleeds@protonmail.com> | 2022-01-05 09:19:30 -0800 |
|---|---|---|
| committer | Simon McVittie <smcv@debian.org> | 2022-02-08 18:57:25 +0000 |
| commit | 25b354cb65aaf2de8f31ee81f4451e730a139da1 (patch) | |
| tree | e0b1f20972155677fceeab721a865f2b898e9ac5 | |
| parent | 0059e2596b34ba60078124f218996cc313d64731 (diff) | |
| download | flatpak-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-x | tests/test-history.sh | 2 |
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 |
