Skip to content

Commit 713136b

Browse files
fix: random test failure (#725)
Co-authored-by: Rishabh Poddar <[email protected]>
1 parent dc2afb5 commit 713136b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/io/supertokens/test/authRecipe/GetUsersWithSearchTagsAPITest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ public void testSearchingForUsersWithMultipleInputsForEachField() throws Excepti
195195
// create emailpassword user
196196
ArrayList<String> userIds = new ArrayList<>();
197197
userIds.add(EmailPassword.signUp(process.getProcess(), "[email protected]", "testPass123").id);
198+
Thread.sleep(50);
198199
userIds.add(EmailPassword.signUp(process.getProcess(), "[email protected]", "testPass123").id);
200+
Thread.sleep(50);
199201

200202
// search with multiple inputs to email
201203
{
@@ -216,7 +218,9 @@ public void testSearchingForUsersWithMultipleInputsForEachField() throws Excepti
216218

217219
// create thirdparty user
218220
userIds.add(ThirdParty.signInUp(process.getProcess(), "testpid", "test", "[email protected]").user.id);
221+
Thread.sleep(50);
219222
userIds.add(ThirdParty.signInUp(process.getProcess(), "newtestpid", "test123", "[email protected]").user.id);
223+
Thread.sleep(50);
220224
// search with multiple inputs to provider
221225
{
222226
HashMap<String, String> params = new HashMap<>();
@@ -243,6 +247,7 @@ public void testSearchingForUsersWithMultipleInputsForEachField() throws Excepti
243247
createCodeResponse.deviceIdHash,
244248
createCodeResponse.userInputCode, null).user.id);
245249
}
250+
Thread.sleep(50);
246251
{
247252
CreateCodeResponse createCodeResponse = Passwordless.createCode(process.getProcess(), "[email protected]",
248253
"+911987654321",
@@ -251,6 +256,7 @@ public void testSearchingForUsersWithMultipleInputsForEachField() throws Excepti
251256
createCodeResponse.deviceIdHash,
252257
createCodeResponse.userInputCode, null).user.id);
253258
}
259+
Thread.sleep(50);
254260

255261
// search with multiple inputs to phone
256262
{

0 commit comments

Comments
 (0)