diff options
| author | lain <lain@soykaf.club> | 2023-12-07 04:20:54 +0000 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2023-12-07 04:20:54 +0000 | 
| commit | 6c10fd22a3c0b80335d1b1eda8440e2241fa0226 (patch) | |
| tree | e21df9165a2eb2d7a278f819553168aa9ad551f0 /test | |
| parent | 6a6a631c814ff946358dd386bd41bda2c8a37111 (diff) | |
| parent | 1ad0d94d6f1f11c848f277877cc14b3a47a7ae95 (diff) | |
| download | pleroma-6c10fd22a3c0b80335d1b1eda8440e2241fa0226.tar.gz pleroma-6c10fd22a3c0b80335d1b1eda8440e2241fa0226.zip  | |
Merge branch 'reachable-upsert' into 'develop'
Change set_reachable/1 to an upsert
See merge request pleroma/pleroma!3986
Diffstat (limited to 'test')
| -rw-r--r-- | test/pleroma/instances/instance_test.exs | 8 | 
1 files changed, 0 insertions, 8 deletions
diff --git a/test/pleroma/instances/instance_test.exs b/test/pleroma/instances/instance_test.exs index a769f9362..6a718be21 100644 --- a/test/pleroma/instances/instance_test.exs +++ b/test/pleroma/instances/instance_test.exs @@ -31,14 +31,6 @@ defmodule Pleroma.Instances.InstanceTest do        assert {:ok, instance} = Instance.set_reachable(instance.host)        refute instance.unreachable_since      end - -    test "does NOT create an Instance record in case of no existing matching record" do -      host = "domain.org" -      assert nil == Instance.set_reachable(host) - -      assert [] = Repo.all(Ecto.Query.from(i in Instance)) -      assert Instance.reachable?(host) -    end    end    describe "set_unreachable/1" do  | 
