projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disable providers of user and status metadata when instance is private
[akkoma]
/
test
/
workers
/
cron
/
clear_oauth_token_worker_test.exs
diff --git
a/test/workers/cron/clear_oauth_token_worker_test.exs
b/test/workers/cron/clear_oauth_token_worker_test.exs
index adea473262f6266c4b4698774b6ee54f4886b113..67836f34f8a7a245e8ce6e3135f3feb2fa0d4615 100644
(file)
--- a/
test/workers/cron/clear_oauth_token_worker_test.exs
+++ b/
test/workers/cron/clear_oauth_token_worker_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.Cron.ClearOauthTokenWorkerTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.Cron.ClearOauthTokenWorkerTest do
@@
-8,7
+8,7
@@
defmodule Pleroma.Workers.Cron.ClearOauthTokenWorkerTest do
import Pleroma.Factory
alias Pleroma.Workers.Cron.ClearOauthTokenWorker
import Pleroma.Factory
alias Pleroma.Workers.Cron.ClearOauthTokenWorker
- clear_config([:oauth2, :clean_expired_tokens])
+
setup do:
clear_config([:oauth2, :clean_expired_tokens])
test "deletes expired tokens" do
insert(:oauth_token,
test "deletes expired tokens" do
insert(:oauth_token,
@@
-16,7
+16,7
@@
defmodule Pleroma.Workers.Cron.ClearOauthTokenWorkerTest do
)
Pleroma.Config.put([:oauth2, :clean_expired_tokens], true)
)
Pleroma.Config.put([:oauth2, :clean_expired_tokens], true)
- ClearOauthTokenWorker.perform(
:opts, :job
)
+ ClearOauthTokenWorker.perform(
%Oban.Job{}
)
assert Pleroma.Repo.all(Pleroma.Web.OAuth.Token) == []
end
end
assert Pleroma.Repo.all(Pleroma.Web.OAuth.Token) == []
end
end