diff options
author | Kim Alvefur <zash@zash.se> | 2024-10-29 15:05:14 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-10-29 15:05:14 +0100 |
commit | 25754509f4d566c5ea94c07a2c4aae165459a75e (patch) | |
tree | c2addbe1d5d6a01886eb713ecc5382359bee9e08 /spec/util_pubsub_spec.lua | |
parent | c175dc8265beac3ccb64781f0443a38a102bc1ff (diff) | |
download | prosody-25754509f4d566c5ea94c07a2c4aae165459a75e.tar.gz prosody-25754509f4d566c5ea94c07a2c4aae165459a75e.zip |
util.pubsub: Fix test to account for not using util.error
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 45a612a0..f968fb97 100644 --- a/spec/util_pubsub_spec.lua +++ b/spec/util_pubsub_spec.lua @@ -108,7 +108,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.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 () |