aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-01-23 23:00:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-23 23:00:16 +0300
commita4dabaa6db8806f23bb7d7bdbb95cab456ef3a73 (patch)
tree5457766f3bbce169844b2a90d913e6a2eea1d6cc
parentd6b4ed9cc7f6b27c9180627e7d1fec4d698af28c (diff)
Fix publish test that fails due to package version decrease on commit
-rw-r--r--tests/publish.testscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/publish.testscript b/tests/publish.testscript
index df3a817..55bc01a 100644
--- a/tests/publish.testscript
+++ b/tests/publish.testscript
@@ -257,6 +257,13 @@ g = git -C prj >! 2>!
info: use --force=uncommitted to publish anyway
EOE
+ # Note that the uncomitted snapshot sn is the previous commit time + 1
+ # and the commited snapshot sn is the commit time. That's why let's
+ # sleep a bit to make sure that the package version increases with the
+ # commit.
+ #
+ sleep 1;
+
$g commit -a -m 'Version';
$* 2>>~%EOE% != 0;