diff options
author | Matthew Wild <mwild1@gmail.com> | 2019-10-27 14:45:57 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2019-10-27 14:45:57 +0000 |
commit | b5b9b70c88a1287f034bceccdd953fe805bc78c6 (patch) | |
tree | 756544f4eab48d78f47b52589e3f2fedc88404b8 /spec/util_pubsub_spec.lua | |
parent | 7207a107fd582334d32af3d847ef8e939d136e97 (diff) | |
download | prosody-b5b9b70c88a1287f034bceccdd953fe805bc78c6.tar.gz prosody-b5b9b70c88a1287f034bceccdd953fe805bc78c6.zip |
util.pubsub, pubsub.lib and tests: Add text to precondition-not-met error (fixes #1455)
Diffstat (limited to 'spec/util_pubsub_spec.lua')
-rw-r--r-- | spec/util_pubsub_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_pubsub_spec.lua b/spec/util_pubsub_spec.lua index c982fb36..a48bd400 100644 --- a/spec/util_pubsub_spec.lua +++ b/spec/util_pubsub_spec.lua @@ -107,7 +107,7 @@ describe("util.pubsub", function () 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 () |