aboutsummaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-05-12 12:12:10 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-05-13 11:38:22 +0300
commitec27f346eebc99ff8bbc7d1e34c9559cf80b8691 (patch)
treed0c574f5f4d9415d25c9cba558f352e417cb994b /test/web
parente0944dee993eec88f678e98de9382af82ca5a77a (diff)
downloadpleroma-ec27f346eebc99ff8bbc7d1e34c9559cf80b8691.tar.gz
correct order for publised in assert
Diffstat (limited to 'test/web')
-rw-r--r--test/web/feed/tag_controller_test.exs8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/web/feed/tag_controller_test.exs b/test/web/feed/tag_controller_test.exs
index d726300a9..c3d83ef81 100644
--- a/test/web/feed/tag_controller_test.exs
+++ b/test/web/feed/tag_controller_test.exs
@@ -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) == [