mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Add regression test for dc_set_chat_mute_duration panic
Panic was fixed in 3c8e60a2a3
This commit is contained in:
committed by
link2xt
parent
6d68fd4500
commit
24d0382ec3
@@ -288,6 +288,11 @@ class TestOfflineChat:
|
||||
with pytest.raises(ValueError):
|
||||
chat.mute(-51)
|
||||
|
||||
# Regression test, this caused Rust panic previously
|
||||
chat.mute(2**63 - 1)
|
||||
assert chat.is_muted()
|
||||
assert chat.get_mute_duration() == -1
|
||||
|
||||
def test_delete_and_send_fails(self, ac1, chat1):
|
||||
chat1.delete()
|
||||
ac1._evtracker.wait_next_messages_changed()
|
||||
|
||||
Reference in New Issue
Block a user