forked from AkkomaGang/akkoma
correct order for publised in assert
This commit is contained in:
parent
e0944dee99
commit
ec27f346ee
1 changed files with 2 additions and 6 deletions
|
@ -82,10 +82,6 @@ test "gets a feed (ATOM)", %{conn: conn} do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "gets a feed (RSS)", %{conn: conn} do
|
test "gets a feed (RSS)", %{conn: conn} do
|
||||||
%{microsecond: {micro, _}} = DateTime.utc_now()
|
|
||||||
micro = (micro / 1000) |> floor()
|
|
||||||
Process.sleep(950 - micro)
|
|
||||||
|
|
||||||
Pleroma.Config.put(
|
Pleroma.Config.put(
|
||||||
[:feed, :post_title],
|
[:feed, :post_title],
|
||||||
%{max_length: 25, omission: "..."}
|
%{max_length: 25, omission: "..."}
|
||||||
|
@ -142,8 +138,8 @@ test "gets a feed (RSS)", %{conn: conn} do
|
||||||
]
|
]
|
||||||
|
|
||||||
assert xpath(xml, ~x"//channel/item/pubDate/text()"sl) == [
|
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) == [
|
assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [
|
||||||
|
|
Loading…
Reference in a new issue