From 13485c371e4c705c31267f20820e82f85667bc8d Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 25 Nov 2026 17:13:51 +0100 Subject: [PATCH] R1 binding-said-again: a created heard again with a day count or an operation more is written again Builds: design 47 H2 H-A-685 (3); row R1 (the field comes with mesh-sdk S4) --- modules/mesh-grants/grants_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/mesh-grants/grants_test.go b/modules/mesh-grants/grants_test.go index b57f323a3..147d1853f 100644 --- a/modules/mesh-grants/grants_test.go +++ b/modules/mesh-grants/grants_test.go @@ -3352,6 +3352,22 @@ func TestGrants(t *testing.T) { if !hear("mesh.seat.mesh-broker.event.created", first) || hear("mesh.seat.mesh-broker.event.created", first) { t.Fatal("created: not kept once") } + // H-A-685 (3): a created heard again with a day count of ended instances more, or one operation more, is another binding and + // is written again, the bindings being compared whole. + days := first + days.EndedDays = 30 + if !hear("mesh.seat.mesh-broker.event.created", days) || hear("mesh.seat.mesh-broker.event.created", days) { + t.Fatal("created with ended-days more: not rewritten once") + } + more := days + more.Types = []catalogue.LedgerType{{Name: "act", Operations: []catalogue.LedgerOperation{{Name: "open"}}}} + if !hear("mesh.seat.mesh-broker.event.created", more) { + t.Fatal("created with a type: not rewritten") + } + more.Types = []catalogue.LedgerType{{Name: "act", Operations: []catalogue.LedgerOperation{{Name: "open"}, {Name: "end"}}}} + if !hear("mesh.seat.mesh-broker.event.created", more) { + t.Fatal("created with one operation more: not rewritten") + } b.assign("b", "mod-x") p.Compose() for _, key := range []string{"a.mod-x", "b.mod-x"} {