diff options
author | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2022-04-22 16:33:38 +0200 |
---|---|---|
committer | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2022-05-02 12:43:19 +0200 |
commit | 788ac72c7859e27d5800cddb9ee343248f0b3568 (patch) | |
tree | 62710a73d2355d6f7cc77cf6d42017c96104112a /nixos/tests/xmpp | |
parent | 20693a1e733dca4cd7e3001d7d7f60bd7237b301 (diff) |
nixosTests.prosody: remove explicit timeout_callback error path
Slixmpp is yielding a IqTimeout error when timeout is reached. This exception should be catched by the catchall exept clause. Removing the useless timeout_callback function. Kudos to https://lab.louiz.org/poezio/slixmpp/-/merge_requests/198#note_16939 for that one.
Diffstat (limited to 'nixos/tests/xmpp')
-rw-r--r-- | nixos/tests/xmpp/xmpp-sendmessage.nix | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nixos/tests/xmpp/xmpp-sendmessage.nix b/nixos/tests/xmpp/xmpp-sendmessage.nix index 47a77f524c6af..80dfcff2d0ebc 100644 --- a/nixos/tests/xmpp/xmpp-sendmessage.nix +++ b/nixos/tests/xmpp/xmpp-sendmessage.nix @@ -51,11 +51,8 @@ class CthonTest(ClientXMPP): log.info('Message sent') # Test http upload (XEP_0363) - def timeout_callback(arg): - log.error("ERROR: Cannot upload file. XEP_0363 seems broken") - sys.exit(1) try: - url = await self['xep_0363'].upload_file("${dummyFile}",timeout=10, timeout_callback=timeout_callback) + url = await self['xep_0363'].upload_file("${dummyFile}",timeout=10) except: log.error("ERROR: Cannot run upload command. XEP_0363 seems broken") sys.exit(1) |