make test fail everytime
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Mon, 11 May 2020 12:22:52 +0000 (15:22 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 13 May 2020 08:38:22 +0000 (11:38 +0300)
test/web/feed/tag_controller_test.exs

index d95aac108620ae31cccef07f94fc7e17817cc51d..d726300a9cf6d83e0446aade5120b481bf915576 100644 (file)
@@ -82,6 +82,10 @@ defmodule Pleroma.Web.Feed.TagControllerTest do
   end
 
   test "gets a feed (RSS)", %{conn: conn} do
+    %{microsecond: {micro, _}} = DateTime.utc_now()
+    micro = (micro / 1000) |> floor()
+    Process.sleep(950 - micro)
+
     Pleroma.Config.put(
       [:feed, :post_title],
       %{max_length: 25, omission: "..."}