diff options
author | David Bremner <david@tethera.net> | 2013-12-08 23:29:38 +0800 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2013-12-09 21:20:28 +0800 |
commit | b421f00a05dba82d6c3df6dcb6ae9063c5395b49 (patch) | |
tree | c9116d8d7b6f6279711f5af2877031c74ceac97c /test/test-lib.sh | |
parent | 72ff135ac3e79be548bf5b82b63d15ba278ef4ce (diff) |
test: give unique timestamps to messages
The choice of decreasing timestamps is a hack which reduces the number
of existing tests which fail. This can be changed to increasing
if/when somebody wants update another 47 tests.
Diffstat (limited to 'test/test-lib.sh')
-rw-r--r-- | test/test-lib.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index d22408d8..53cb9475 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -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="" |