From c4fdaa80b6ee94c7ed754d60cbc27cb36e0fcd68 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 19 Apr 2023 12:03:34 +0200 Subject: util.error: Add test for #1805 Checks that it doesn't fail on a stanza without tag --- spec/util_error_spec.lua | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3