Software /
code /
prosody
Diff
spec/util_pubsub_spec.lua @ 10356:0a2d7efca039
util.pubsub, pubsub.lib and tests: Add text to precondition-not-met error (fixes #1455)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 27 Oct 2019 14:45:57 +0000 |
parent | 9840:ec353524b739 |
child | 10541:6c6ff4509082 |
line wrap: on
line diff
--- a/spec/util_pubsub_spec.lua Sun Oct 20 23:47:48 2019 +0200 +++ b/spec/util_pubsub_spec.lua Sun Oct 27 14:45:57 2019 +0000 @@ -107,7 +107,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); + assert.equals("precondition-not-met", err.pubsub_condition); end); it("allows to publish to a node with differing config when only defaults are suggested", function ()