projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc52f03
)
SearchController Test: Fix test.
author
lain
<lain@soykaf.club>
Fri, 20 Nov 2020 15:29:11 +0000
(16:29 +0100)
committer
lain
<lain@soykaf.club>
Fri, 20 Nov 2020 15:29:11 +0000
(16:29 +0100)
test/pleroma/web/mastodon_api/controllers/search_controller_test.exs
patch
|
blob
|
history
diff --git
a/test/pleroma/web/mastodon_api/controllers/search_controller_test.exs
b/test/pleroma/web/mastodon_api/controllers/search_controller_test.exs
index b77614b7c5554b253cff2529b04cfc3a77f5af93..2b2579857a2e5db6d8aa76280d356481d62e5578 100644
(file)
--- a/
test/pleroma/web/mastodon_api/controllers/search_controller_test.exs
+++ b/
test/pleroma/web/mastodon_api/controllers/search_controller_test.exs
@@
-279,7
+279,8
@@
defmodule Pleroma.Web.MastodonAPI.SearchControllerTest do
end
test "search fetches remote statuses and prefers them over other results", %{conn: conn} do
- clear_config([:instance, :search_function], :plain)
+ old_config = Application.get_env(:postgres, :version)
+ Application.put_env(:postgres, :version, 10.0)
capture_log(fn ->
{:ok, %{id: activity_id}} =
@@
-297,6
+298,8
@@
defmodule Pleroma.Web.MastodonAPI.SearchControllerTest do
%{"id" => ^activity_id}
] = results["statuses"]
end)
+
+ Application.put_env(:postgres, :version, old_config)
end
test "search doesn't show statuses that it shouldn't", %{conn: conn} do