Skip to content

Commit d1a4aee

Browse files
author
matthias_schaub
committed
Wait for Firebase Functions to finish.
1 parent afc0328 commit d1a4aee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mapswipe_workers/tests/integration/test_archive_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def tearDown(self):
2121
def test_changes(self):
2222
"""Test if groups, tasks and results are deleted from Firebase."""
2323
archive_project.archive_project([self.project_id])
24-
time.sleep(2) # Wait for Firebase Functions to complete
24+
time.sleep(4) # Wait for Firebase Functions to complete
2525

2626
fb_db = auth.firebaseDB()
2727
ref = fb_db.reference("v2/groups/{0}".format(self.project_id))
@@ -43,7 +43,7 @@ def test_changes(self):
4343
def test_project_id_not_exists(self):
4444
"""Test for project id which does not exists."""
4545
archive_project.archive_project(["tuna"])
46-
time.sleep(2) # Wait for Firebase Functions to complete
46+
time.sleep(4) # Wait for Firebase Functions to complete
4747

4848
fb_db = auth.firebaseDB()
4949
ref = fb_db.reference("v2/groups/")

0 commit comments

Comments
 (0)