Check every mesh node's bucket and stream name, not only one (issue 1694, ADR 0488 §4)
mesh/merge-gate head 216d2b441132 merged into trunk d4deecdb380b — pass, with a note: builds mesh-sdk (+41 dependent(s)) → ace, g14, novox, shanks; no bus …
mesh/repo-check head 216d2b441132 merged into trunk d4deecdb380b — fail: merge-check.sh (typescript) passed; its go/merge-check.sh failed: make them cheap …
mesh/delivery superseded: a newer head of the same pull request

This commit is contained in:
2026-10-21 16:03:55 +02:00
parent 86f9a1a5c5
commit 216d2b4411
+9 -7
View File
@@ -137,13 +137,15 @@ func TestTheSharedNames(t *testing.T) {
// 1694/AC6: each node has a bucket of its own, so a grant names it and never needs a `*` (ADR 0486 §2). // 1694/AC6: each node has a bucket of its own, so a grant names it and never needs a `*` (ADR 0486 §2).
func TestEachNodeHasABucketOfItsOwn(t *testing.T) { func TestEachNodeHasABucketOfItsOwn(t *testing.T) {
b, err := FileBucketFor("g14") for _, n := range []string{"ace", "g14", "novox", "shanks"} {
if err != nil || b != "declaration-files-g14" { b, err := FileBucketFor(n)
t.Fatalf("%q %v", b, err) if err != nil || b != "declaration-files-"+n {
} t.Errorf("bucket for %q: %q %v", n, b, err)
s, err := FileStreamFor("g14") }
if err != nil || s != "OBJ_declaration-files-g14" { s, err := FileStreamFor(n)
t.Fatalf("%q %v", s, err) if err != nil || s != "OBJ_declaration-files-"+n {
t.Errorf("stream for %q: %q %v", n, s, err)
}
} }
for _, bad := range []string{"", "a.b", "a*", "*", ">", "a b", "a>", "a/b", "ä"} { for _, bad := range []string{"", "a.b", "a*", "*", ">", "a b", "a>", "a/b", "ä"} {
if _, err := FileBucketFor(bad); err == nil { if _, err := FileBucketFor(bad); err == nil {