projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'chore/bump-linkify' into 'develop'
[akkoma]
/
test
/
pleroma
/
web
/
mastodon_api
/
controllers
/
search_controller_test.exs
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 04dc6f4458cf86156090b9c95f25d47e50ffc850..2f0bce450ddfb0cd9c59807e69694f057e29d51e 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,6
+279,9
@@
defmodule Pleroma.Web.MastodonAPI.SearchControllerTest do
end
test "search fetches remote statuses and prefers them over other results", %{conn: conn} do
end
test "search fetches remote statuses and prefers them over other results", %{conn: conn} do
+ old_version = :persistent_term.get({Pleroma.Repo, :postgres_version})
+ :persistent_term.put({Pleroma.Repo, :postgres_version}, 10.0)
+
capture_log(fn ->
{:ok, %{id: activity_id}} =
CommonAPI.post(insert(:user), %{
capture_log(fn ->
{:ok, %{id: activity_id}} =
CommonAPI.post(insert(:user), %{
@@
-295,6
+298,8
@@
defmodule Pleroma.Web.MastodonAPI.SearchControllerTest do
%{"id" => ^activity_id}
] = results["statuses"]
end)
%{"id" => ^activity_id}
] = results["statuses"]
end)
+
+ :persistent_term.put({Pleroma.Repo, :postgres_version}, old_version)
end
test "search doesn't show statuses that it shouldn't", %{conn: conn} do
end
test "search doesn't show statuses that it shouldn't", %{conn: conn} do