Skip to content

Commit

Permalink
arbitrary delay to simulate race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethjiang committed Jan 19, 2024
1 parent 9a8b31d commit 46fd826
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def clean_email(self):
email = self.cleaned_data.get('email')
if email and User.objects.filter(email__iexact=email).exists():
raise forms.ValidationError("A user with that email already exists.")
import time; time.sleep(30)
return email


Expand Down

0 comments on commit 46fd826

Please sign in to comment.