diff --git a/modules/tracker/tracker.test b/modules/tracker/tracker.test
index 5f6f65dadd8fa85239f7234e914a9d512052f114..045191be16ce43988d15897b7d272e1815fdb3c6 100644
--- a/modules/tracker/tracker.test
+++ b/modules/tracker/tracker.test
@@ -133,6 +133,9 @@ class TrackerTest extends DrupalWebTestCase {
       'subject' => $this->randomName(),
       'comment' => $this->randomName(20),
     );
+    // If the comment is posted in the same second as the last one then Drupal
+    // can't tell a difference, so wait one second here.
+    sleep(1);
     $this->drupalPost('comment/reply/' . $node->nid, $comment, t('Save'));
 
     $this->drupalLogin($this->user);