Software /
code /
prosody
Diff
spec/util_pubsub_spec.lua @ 13536:272ea65c3087
util.pubsub: Fix test to account for not using util.error
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 29 Oct 2024 15:05:14 +0100 |
parent | 12153:26af75c20163 |
child | 13549:3b357ab6b6eb |
line wrap: on
line diff
--- a/spec/util_pubsub_spec.lua Tue Oct 29 14:56:02 2024 +0100 +++ b/spec/util_pubsub_spec.lua Tue Oct 29 15:05:14 2024 +0100 @@ -108,7 +108,7 @@ it("fails to publish to a node with differing config", function () local ok, err = service:publish("node", true, "1", "item 2", { myoption = false }); assert.falsy(ok); - assert.equals("precondition-not-met", err.pubsub_condition); + assert.equals("precondition-not-met", err); end); it("allows to publish to a node with differing config when only defaults are suggested", function ()