Skip to content

Commit 5a0e2d0

Browse files
author
matthias_schaub
committed
Wait 4 seconds after archive function is called befor testing results
1 parent a061f94 commit 5a0e2d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mapswipe_workers/tests/integration/test_archive_project.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import time
12
import unittest
23

34
import set_up
@@ -19,6 +20,7 @@ def tearDown(self):
1920
def test_changes(self):
2021
"""Test if groups, tasks and results are deleted from Firebase."""
2122
archive_project.archive_project([self.project_id])
23+
time.sleep(4)
2224

2325
fb_db = auth.firebaseDB()
2426
ref = fb_db.reference("v2/groups/{0}".format(self.project_id))
@@ -40,6 +42,7 @@ def test_changes(self):
4042
def test_project_id_not_exists(self):
4143
"""Test for project id which does not exists."""
4244
archive_project.archive_project(["tuna"])
45+
time.sleep(4)
4346

4447
fb_db = auth.firebaseDB()
4548
ref = fb_db.reference("v2/groups/")

0 commit comments

Comments
 (0)