# HG changeset patch # User Kim Alvefur # Date 1681898614 -7200 # Node ID 031382b207ecf4293159ba0ec4d16e8757366063 # Parent e7a5e5a0dc0233bf19fb8f686a46b64b7348db9f util.error: Add test for #1805 Checks that it doesn't fail on a stanza without tag diff -r e7a5e5a0dc02 -r 031382b207ec spec/util_error_spec.lua --- a/spec/util_error_spec.lua Wed Apr 19 11:42:36 2023 +0200 +++ b/spec/util_error_spec.lua Wed Apr 19 12:03:34 2023 +0200 @@ -56,6 +56,9 @@ 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);