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.
This commit is contained in:
Phaedrus Leeds 2022-01-05 09:19:30 -08:00 committed by Phaedrus Leeds
parent 0a4491aed7
commit 6c57af648b

View File

@ -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