diff options
author | Phaedrus Leeds <mwleeds@protonmail.com> | 2022-01-05 09:19:30 -0800 |
---|---|---|
committer | Phaedrus Leeds <mwleeds@protonmail.com> | 2022-01-20 09:11:58 -0800 |
commit | d81b3caea0cfd35bb2e5a49dd45a35f5fe615ea6 (patch) | |
tree | a910341b545e4e717bd1a26cec4ed4b3bfae8b77 | |
parent | fd7f821301c078b271f2397129e7847de3830333 (diff) | |
download | flatpak-history-fix-for-1.12.x.tar.gz |
test-history.sh: Fix flakiness by moving sleephistory-fix-for-1.12.x
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.
-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 |