]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: give unique timestamps to messages
[notmuch] / test / test-lib.sh
index d22408d8135bfd954c984830b104bdc1160e4de6..53cb9475ad0f62cb442efb95cac75fda0a4ee235 100644 (file)
@@ -356,7 +356,11 @@ generate_message ()
     fi
 
     if [ -z "${template[date]}" ]; then
-       template[date]="Fri, 05 Jan 2001 15:43:57 +0000"
+       # we use decreasing timestamps here for historical reasons;
+       # the existing test suite when we converted to unique timestamps just
+       # happened to have signicantly fewer failures with that choice.
+       template[date]=$(TZ=UTC printf "%(%a, %d %b %Y %T %z)T\n" \
+                       $((978709437 - gen_msg_cnt)))
     fi
 
     additional_headers=""