tests: remove a useless 3 second sleep
authorrinpatch <rinpatch@sdf.org>
Sun, 15 Dec 2019 21:50:39 +0000 (00:50 +0300)
committerrinpatch <rinpatch@sdf.org>
Sun, 15 Dec 2019 21:50:39 +0000 (00:50 +0300)
the ids favs use are accurate down to a microsecond, there is no need
for it

test/web/activity_pub/activity_pub_test.exs

index ad1fb6d02ff7c2161d7a08d040ffb8367e35d8d9..1520c8a9bb13ef7eb8e51f4606210a5aa5bb42d5 100644 (file)
@@ -1639,13 +1639,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
 
       {:ok, _, _} = CommonAPI.favorite(a4.id, user)
       {:ok, _, _} = CommonAPI.favorite(a3.id, other_user)
-      Process.sleep(1000)
       {:ok, _, _} = CommonAPI.favorite(a3.id, user)
       {:ok, _, _} = CommonAPI.favorite(a5.id, other_user)
-      Process.sleep(1000)
       {:ok, _, _} = CommonAPI.favorite(a5.id, user)
       {:ok, _, _} = CommonAPI.favorite(a4.id, other_user)
-      Process.sleep(1000)
       {:ok, _, _} = CommonAPI.favorite(a1.id, user)
       {:ok, _, _} = CommonAPI.favorite(a1.id, other_user)
       result = ActivityPub.fetch_favourites(user)