summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/data_setup.py
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@riseup.net>2015-09-14 14:53:51 -0300
committerBruno Wagner <bwagner@riseup.net>2015-09-14 14:53:51 -0300
commit88e599ec85e5f1dc8223b6c518aa917202ae6ec4 (patch)
treecd5d1e47f655729c13cd1614ca3100f58495e571 /service/test/functional/features/steps/data_setup.py
parent4b393a933c8d7dc236251d9dbd28c40d20f9a0bf (diff)
Added sleep after adding mail so it is properly indexed
Diffstat (limited to 'service/test/functional/features/steps/data_setup.py')
-rw-r--r--service/test/functional/features/steps/data_setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/test/functional/features/steps/data_setup.py b/service/test/functional/features/steps/data_setup.py
index 8648732e..ee925eb5 100644
--- a/service/test/functional/features/steps/data_setup.py
+++ b/service/test/functional/features/steps/data_setup.py
@@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
+from time import sleep
from uuid import uuid4
from test.support.integration import MailBuilder
from behave import given
@@ -24,5 +25,6 @@ def add_mail_impl(context):
input_mail = MailBuilder().with_subject(subject).build_input_mail()
context.client.add_mail_to_inbox(input_mail)
+ sleep(5) # we need to wait for the mail to be indexed (3 secs at least)
context.last_subject = subject