diff --git a/modules/mesh-delivery-forge-bridge/manifest_test.go b/modules/mesh-delivery-forge-bridge/manifest_test.go index 04d3557..f1bb6ea 100644 --- a/modules/mesh-delivery-forge-bridge/manifest_test.go +++ b/modules/mesh-delivery-forge-bridge/manifest_test.go @@ -102,9 +102,11 @@ func TestManifestDeclarations(t *testing.T) { // 1235/AC1 if m.SecretsOwner != "mesh-delivery-forge-bridge" { t.Errorf("secrets-owner = %q", m.SecretsOwner) } - // One bucket: the head last written on FORGE for each pull request, so a sync writes only what differs (ADR 0443 §5). - if !reflect.DeepEqual(m.State, []state{{Name: "heads", History: 1}}) { // 1279/AC6 - t.Errorf("state = %+v, want the one bucket heads", m.State) + // Two buckets: the head last written on FORGE for each pull request, so a sync writes only what differs (ADR 0443 + // §5), and the revision of each key of the gate's buckets the bridge performed, so a key is performed once per + // revision (ADR 0437 §8; issue 1341). + if !reflect.DeepEqual(m.State, []state{{Name: "heads", History: 1}, {Name: "performed", History: 1}}) { // 1279/AC6, 1341 + t.Errorf("state = %+v, want the buckets heads and performed", m.State) } // No other state, no bus, no seat, no tool (ADR 0437 §4). for _, k := range []string{"logs", "emits", "claims", "provides", "requires", "uses", "defines-seats", "tools", "seat", "seats"} {