aboutsummaryrefslogtreecommitdiff
path: root/test/search-folder-coherence
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2011-06-29 14:11:38 -0700
committerCarl Worth <cworth@cworth.org>2011-06-29 14:11:38 -0700
commit55a78d5dbd96b80939458d9d6cc8a536b1befa87 (patch)
treeac5758860ee7819a3aab0fc31a0a2b99948ce137 /test/search-folder-coherence
parent86e0baeb6df5509393832488c0de3520a1a5bdcb (diff)
test: Use increment_mtime rather than sleep
The sleep was to force the directory's mtime to advance between the previous notmuch new and the subsequent rm;notmuch new. The current convention is to use the existing increment_mtime function for this purpose, (which avoids the test suite being slowed down by calls to sleep). Thanks to Austin Clements for noticing this undesired sleep.
Diffstat (limited to 'test/search-folder-coherence')
-rwxr-xr-xtest/search-folder-coherence3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/search-folder-coherence b/test/search-folder-coherence
index cf3ba40..9c31254 100755
--- a/test/search-folder-coherence
+++ b/test/search-folder-coherence
@@ -34,10 +34,9 @@ test_begin_subtest "Test matches folder:spam"
output=$(notmuch search folder:spam)
test_expect_equal "$output" "thread:0000000000000001 2001-01-05 [1/1] Notmuch Test Suite; Test message #1 (inbox unread)"
-sleep 1;
-
test_begin_subtest "Remove folder:spam copy of email"
rm $dir/spam/$(basename $file_x)
+increment_mtime $dir/spam
output=$(NOTMUCH_NEW)
test_expect_equal "$output" "No new mail. Detected 1 file rename."