@@ -58,8 +58,6 @@ def project_invite(client, test_project, dummy_email):
58
58
59
59
def test_get_organization_invites (client , org_invite ):
60
60
"""Test retrieving all organization invites"""
61
- # Add a small delay to ensure invite is created
62
- time .sleep (1 )
63
61
64
62
organization = client .get_organization ()
65
63
invites = organization .get_invites ()
@@ -73,8 +71,6 @@ def test_get_organization_invites(client, org_invite):
73
71
74
72
def test_get_project_invites (client , test_project , project_invite ):
75
73
"""Test retrieving project-specific invites"""
76
- # Add a small delay to ensure invite is created
77
- time .sleep (1 )
78
74
79
75
organization = client .get_organization ()
80
76
project_invites = organization .get_project_invites (test_project .uid )
@@ -100,9 +96,6 @@ def test_cancel_invite(client, dummy_email):
100
96
organization = client .get_organization ()
101
97
organization .invite_user (dummy_email , role )
102
98
103
- # Add a small delay to ensure invite is created
104
- time .sleep (1 )
105
-
106
99
# Find the actual invite by email
107
100
invites = organization .get_invites ()
108
101
found_invite = next (
@@ -131,9 +124,6 @@ def test_cancel_project_invite(client, test_project, dummy_email):
131
124
dummy_email , roles ["NONE" ], project_roles = [project_role ]
132
125
)
133
126
134
- # Add a small delay to ensure invite is created
135
- time .sleep (1 )
136
-
137
127
# Find the actual invite by email
138
128
invites = organization .get_invites ()
139
129
found_invite = next (
@@ -172,9 +162,6 @@ def test_project_invite_after_project_deletion(client, dummy_email):
172
162
dummy_email , roles ["NONE" ], project_roles = [project_role1 , project_role2 ]
173
163
)
174
164
175
- # Add a small delay to ensure invite is created
176
- time .sleep (1 )
177
-
178
165
# Delete one project
179
166
project1 .delete ()
180
167
0 commit comments