# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1730210714 -3600
# Node ID 272ea65c3087be97df4a3fe0a748bf73ae5012b8
# Parent  88cab98aa28c2a784746cf641dd760235dc61119
util.pubsub: Fix test to account for not using util.error

diff -r 88cab98aa28c -r 272ea65c3087 spec/util_pubsub_spec.lua
--- 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 ()