diff options
author | Kim Alvefur <zash@zash.se> | 2023-04-19 12:03:34 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-04-19 12:03:34 +0200 |
commit | c4fdaa80b6ee94c7ed754d60cbc27cb36e0fcd68 (patch) | |
tree | 11a127bd1fc72389a05af8c6f1c4ae96248551f8 | |
parent | 6114ccee1132f7165b65982d7056611482495d15 (diff) | |
download | prosody-c4fdaa80b6ee94c7ed754d60cbc27cb36e0fcd68.tar.gz prosody-c4fdaa80b6ee94c7ed754d60cbc27cb36e0fcd68.zip |
util.error: Add test for #1805
Checks that it doesn't fail on a stanza without <error> tag
-rw-r--r-- | spec/util_error_spec.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/util_error_spec.lua b/spec/util_error_spec.lua index be176635..ebe8bff7 100644 --- a/spec/util_error_spec.lua +++ b/spec/util_error_spec.lua @@ -56,6 +56,9 @@ describe("util.error", function () assert.equal(e, err.context.stanza); assert.equal("error.example", err.context.by); assert.not_nil(err.extra.tag); + assert.not_has_error(function () + errors.from_stanza(st.message()) + end); end); end); |