summaryrefslogtreecommitdiff
path: root/test/web/instances/instance_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-09-23 21:41:57 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-09-23 21:41:57 +0300
commit179fa32dd5d7b4cf1b338fc3df4840ae33525606 (patch)
treed674301d9d20e9da88bedff49d3d8a56646284d8 /test/web/instances/instance_test.exs
parentbc3e8c033bbef303890ff6afa92d1fe365e530fb (diff)
parentfd48bd80eb7eab563c25586b1deba2ed42c02c5a (diff)
downloadpleroma-179fa32dd5d7b4cf1b338fc3df4840ae33525606.tar.gz
pleroma-179fa32dd5d7b4cf1b338fc3df4840ae33525606.zip
Merge branch 'develop' into tests/mastodon_api_controller.ex
Diffstat (limited to 'test/web/instances/instance_test.exs')
-rw-r--r--test/web/instances/instance_test.exs5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/web/instances/instance_test.exs b/test/web/instances/instance_test.exs
index 3fd011fd3..e54d708ad 100644
--- a/test/web/instances/instance_test.exs
+++ b/test/web/instances/instance_test.exs
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Instances.InstanceTest do
@@ -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