Merge branch '2015.11-develop'
[tine20] / tests / tine20 / Felamimail / Frontend / JsonTest.php
index 519437a..d1ea56d 100644 (file)
@@ -1627,6 +1627,9 @@ IbVx8ZTO7dJRKrg72aFmWTf0uNla7vicAhpiLWobyNYcZbIjrAGDfg==
         $messageToSend['headers'] = array_merge($messageToSend['headers'], $addtionalHeaders);
         $returned = $this->_json->saveMessage($messageToSend);
         $this->_foldersToClear = array('INBOX', $this->_account->sent_folder);
+
+        // sleep for 2 secs because mailserver may be slower than expected
+        sleep(2);
         
         $result = $this->_getMessages($folderName);
         $message = $this->_getMessageFromSearchResult($result, $messageToSend['subject']);