]> git.notmuchmail.org Git - notmuch/commit
notmuch-test: Eliminate sleeps to speed up test suite run
authorCarl Worth <cworth@cworth.org>
Thu, 4 Feb 2010 19:31:01 +0000 (11:31 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 4 Feb 2010 20:10:42 +0000 (12:10 -0800)
commit5a4532860caf2120e8af27794c6bdcd1eea7b474
treed7418a0f37f619c9412930d55581cb18210d8ce1
parenta821ba57371c43635420b6148713f13a064b83cf
notmuch-test: Eliminate sleeps to speed up test suite run

We were sleeping merely to ensure that our updates to the mail store
would result in the mtime of the appropriate directories being
updated. We make the test suite run faster by not sleeping, but
instead explicitly updating the mtime of the directory to a future
time with touch.

We're careful to ensure that the time is not merely in the future
compared to the current time, but also later than any previous update
to the same directory mtime.
test/notmuch-test