projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for test warnings
[akkoma]
/
test
/
pleroma
/
chat_test.exs
diff --git
a/test/pleroma/chat_test.exs
b/test/pleroma/chat_test.exs
index 9e8a9ebf01abcca2ba80528c72ecef060e79afc8..a5fd1e02e35150013b50b78af9afe014b283fccc 100644
(file)
--- a/
test/pleroma/chat_test.exs
+++ b/
test/pleroma/chat_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ChatTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ChatTest do
@@
-73,7
+73,8
@@
defmodule Pleroma.ChatTest do
other_user = insert(:user)
{:ok, chat} = Chat.bump_or_create(user.id, other_user.ap_id)
other_user = insert(:user)
{:ok, chat} = Chat.bump_or_create(user.id, other_user.ap_id)
- :timer.sleep(1500)
+ {:ok, chat} = time_travel(chat, -2)
+
{:ok, chat_two} = Chat.bump_or_create(user.id, other_user.ap_id)
assert chat.id == chat_two.id
{:ok, chat_two} = Chat.bump_or_create(user.id, other_user.ap_id)
assert chat.id == chat_two.id