diff options
author | lain <lain@soykaf.club> | 2019-09-30 13:57:54 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-09-30 13:57:54 +0200 |
commit | b923842e96e821afeb7bbfa0d098b9c5698281c5 (patch) | |
tree | 37d84255d7b97fc411f5c78378565a8f205a2120 /test/web/instances/instance_test.exs | |
parent | 6fe2f554c36be1ef03ac1d1104a78d0686f48a26 (diff) | |
parent | 74d8fadf3745a4b4203c2cead35b741554ccc439 (diff) | |
download | pleroma-b923842e96e821afeb7bbfa0d098b9c5698281c5.tar.gz pleroma-b923842e96e821afeb7bbfa0d098b9c5698281c5.zip |
Merge remote-tracking branch 'origin/develop' into reactions
Diffstat (limited to 'test/web/instances/instance_test.exs')
-rw-r--r-- | test/web/instances/instance_test.exs | 5 |
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 |