summaryrefslogtreecommitdiff
path: root/test/web/instances/instance_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-09-16 07:34:22 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-09-16 07:34:22 +0300
commitd75bc728e7e309174373e234079aa4825c81ab3e (patch)
tree1ac6b44f5758ff028103c37d3712520f45a0695e /test/web/instances/instance_test.exs
parent4f548cb2b7b4a16a956a4f4a0ff64d279777925e (diff)
parent2990c0a53b14646eab19b57d068ac8aa7e17ea4e (diff)
downloadpleroma-d75bc728e7e309174373e234079aa4825c81ab3e.tar.gz
pleroma-d75bc728e7e309174373e234079aa4825c81ab3e.zip
Merge branch 'develop' into issue/733
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 3fd011fd3..0b53bc6cd 100644
--- a/test/web/instances/instance_test.exs
+++ b/test/web/instances/instance_test.exs
@@ -16,7 +16,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