Skip to content

Commit 19b05a6

Browse files
committed
Remove delay in invite tests
1 parent 3e47710 commit 19b05a6

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

libs/labelbox/tests/integration/test_invite.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def project_invite(client, test_project, dummy_email):
5858

5959
def test_get_organization_invites(client, org_invite):
6060
"""Test retrieving all organization invites"""
61-
# Add a small delay to ensure invite is created
62-
time.sleep(1)
6361

6462
organization = client.get_organization()
6563
invites = organization.get_invites()
@@ -73,8 +71,6 @@ def test_get_organization_invites(client, org_invite):
7371

7472
def test_get_project_invites(client, test_project, project_invite):
7573
"""Test retrieving project-specific invites"""
76-
# Add a small delay to ensure invite is created
77-
time.sleep(1)
7874

7975
organization = client.get_organization()
8076
project_invites = organization.get_project_invites(test_project.uid)
@@ -100,9 +96,6 @@ def test_cancel_invite(client, dummy_email):
10096
organization = client.get_organization()
10197
organization.invite_user(dummy_email, role)
10298

103-
# Add a small delay to ensure invite is created
104-
time.sleep(1)
105-
10699
# Find the actual invite by email
107100
invites = organization.get_invites()
108101
found_invite = next(
@@ -131,9 +124,6 @@ def test_cancel_project_invite(client, test_project, dummy_email):
131124
dummy_email, roles["NONE"], project_roles=[project_role]
132125
)
133126

134-
# Add a small delay to ensure invite is created
135-
time.sleep(1)
136-
137127
# Find the actual invite by email
138128
invites = organization.get_invites()
139129
found_invite = next(
@@ -172,9 +162,6 @@ def test_project_invite_after_project_deletion(client, dummy_email):
172162
dummy_email, roles["NONE"], project_roles=[project_role1, project_role2]
173163
)
174164

175-
# Add a small delay to ensure invite is created
176-
time.sleep(1)
177-
178165
# Delete one project
179166
project1.delete()
180167

0 commit comments

Comments
 (0)