Changeset

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
parents 13535:88cab98aa28c
children 13537:fb970df95374
files spec/util_pubsub_spec.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 ()