summaryrefslogtreecommitdiff
path: root/test/web/instances/instance_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-08-10 20:38:31 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-08-10 20:38:31 +0300
commit33a5fc4a70b6f9b8c2d8c03a412d7eec8d5b3db1 (patch)
treee19b00805c1589647c3a3be9065599be418fe03e /test/web/instances/instance_test.exs
parent267262491ecf7b413052708062abac69b1d8f643 (diff)
downloadpleroma-33a5fc4a70b6f9b8c2d8c03a412d7eec8d5b3db1.tar.gz
pleroma-33a5fc4a70b6f9b8c2d8c03a412d7eec8d5b3db1.zip
[#1149] Fixed failing tests. Ensured Instance.set_unreachable/2 supports ISO 8601 datetime.
Diffstat (limited to 'test/web/instances/instance_test.exs')
-rw-r--r--test/web/instances/instance_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/instances/instance_test.exs b/test/web/instances/instance_test.exs
index d28730994..a1bdd45d3 100644
--- a/test/web/instances/instance_test.exs
+++ b/test/web/instances/instance_test.exs
@@ -22,7 +22,8 @@ defmodule Pleroma.Instances.InstanceTest do
describe "set_reachable/1" do
test "clears `unreachable_since` of existing matching Instance record having non-nil `unreachable_since`" do
- instance = insert(:instance, unreachable_since: NaiveDateTime.utc_now())
+ unreachable_since = NaiveDateTime.to_iso8601(NaiveDateTime.utc_now())
+ instance = insert(:instance, unreachable_since: unreachable_since)
assert {:ok, instance} = Instance.set_reachable(instance.host)
refute instance.unreachable_since