diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-12-16 01:03:13 +0300 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-12-16 01:03:13 +0300 |
| commit | 54029fe21271e7d4396699ee297f2910cd6fbbdc (patch) | |
| tree | 70a32abacc2c2272302d7313961677dc81990488 /test/conversation | |
| parent | 137a3d220bba01e9cacd8007fa030c69830cc9aa (diff) | |
| download | pleroma-54029fe21271e7d4396699ee297f2910cd6fbbdc.tar.gz pleroma-54029fe21271e7d4396699ee297f2910cd6fbbdc.zip | |
tests: remove a useless sleep in rate limiter tests
It was used to check that authenticated and unauthenticated users have
different limits. Instead of sleeping a super low limit for
unauthenticated users was set, preventing them from doing 5 requests in
the first place.
Diffstat (limited to 'test/conversation')
| -rw-r--r-- | test/conversation/participation_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/conversation/participation_test.exs b/test/conversation/participation_test.exs index 88dc32198..ba81c0d4b 100644 --- a/test/conversation/participation_test.exs +++ b/test/conversation/participation_test.exs @@ -99,7 +99,7 @@ defmodule Pleroma.Conversation.ParticipationTest do assert participation.user_id == user.id assert participation.conversation_id == conversation.id - + # Needed because updated_at is accurate down to a second :timer.sleep(1000) |
