diff --git a/internal/compose/rendering_test.go b/internal/compose/rendering_test.go index 806c8c7f..e7bc84e0 100644 --- a/internal/compose/rendering_test.go +++ b/internal/compose/rendering_test.go @@ -368,6 +368,14 @@ func TestTheStoreIsFoundByTheImageSeatsHolderAndItsListen(t *testing.T) { if why, held := got.Rendering.NotPlaced["plain"]; held { t.Errorf("a module that fetches nothing from the store waits: %q", why) } + // A-461b: only the listen refusal holds the store's fetchers; any other fault of finding the store (here the holder's machine is + // on the network as first read but unknown when its assignment is read) still refuses the node. + broken := newComposer(in) + broken.onTheNetwork() + broken.in.Nodes = []Node{*nodeOf(t, &in, "laptop")} + if _, err := broken.places("laptop", Resolved{}); err == nil || !strings.Contains(err.Error(), "reading what anchor is assigned") { + t.Errorf("a fault of finding the store other than its listen refusal did not refuse the node: %v", err) + } } // A zone a module declares is placed where the mesh put it: settled from that node's settings, at the node's private address, on