projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'hotfix/hackney-1.15.2' into 'develop'
[akkoma]
/
test
/
web
/
common_api
/
common_api_test.exs
diff --git
a/test/web/common_api/common_api_test.exs
b/test/web/common_api/common_api_test.exs
index 5fda91438a7c514119132ee3122f2f6936b19530..f28a6609070c99063bf1ca3189a9f084dbb361a0 100644
(file)
--- a/
test/web/common_api/common_api_test.exs
+++ b/
test/web/common_api/common_api_test.exs
@@
-213,10
+213,8
@@
defmodule Pleroma.Web.CommonAPITest do
|> NaiveDateTime.truncate(:second)
|> NaiveDateTime.add(1_000_000, :second)
|> NaiveDateTime.truncate(:second)
|> NaiveDateTime.add(1_000_000, :second)
- expires_at_iso8601 = expires_at |> NaiveDateTime.to_iso8601()
-
assert {:ok, activity} =
assert {:ok, activity} =
- CommonAPI.post(user, %{"status" => "chai", "expires_
at" => expires_at_iso8601
})
+ CommonAPI.post(user, %{"status" => "chai", "expires_
in" => 1_000_000
})
assert expiration = Pleroma.ActivityExpiration.get_by_activity_id(activity.id)
assert expiration.scheduled_at == expires_at
assert expiration = Pleroma.ActivityExpiration.get_by_activity_id(activity.id)
assert expiration.scheduled_at == expires_at