correct order for publised in assert
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 12 May 2020 09:12:10 +0000 (12:12 +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 d726300a9cf6d83e0446aade5120b481bf915576..c3d83ef81f7b6086afc63cc5400a0a55b0b0fa9b 100644 (file)
@@ -82,10 +82,6 @@ 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: "..."}
@@ -142,8 +138,8 @@ defmodule Pleroma.Web.Feed.TagControllerTest do
            ]
 
     assert xpath(xml, ~x"//channel/item/pubDate/text()"sl) == [
-             FeedView.pub_date(activity1.data["published"]),
-             FeedView.pub_date(activity2.data["published"])
+             FeedView.pub_date(activity2.data["published"]),
+             FeedView.pub_date(activity1.data["published"])
            ]
 
     assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [