Hold the rollout test's tier 1 to a key taken at b's own trunk value: the walk carries only the catalogue's commit, so KeyAt stays empty (issue 1938, after issue 1931)

This commit is contained in:
2026-10-24 06:18:20 +02:00
parent a5b874a2a0
commit 5b03b2e26b
+4 -1
View File
@@ -187,8 +187,11 @@ func TestARolloutAdvancesOnEventsAndAReplacedControllerResumesIt(t *testing.T) {
eventually(t, "tier 0 sent to both machines and tier 1 taken from its key, on the save alone", func() bool {
mu.Lock()
defer mu.Unlock()
// b is taken from its key; the walk carries a commit of novox/mesh-catalog only, and b is registered from
// novox/b, so the key is read at b's own trunk value and KeyAt stays empty (Plan.CommitOn names no other
// repository's commit).
b := plan().Modules["b"]
return len(sends) == 1 && len(*asked) == 0 && plan().Tier == 1 && b != nil && b.Key && b.KeyAt == "c2"
return len(sends) == 1 && len(*asked) == 0 && plan().Tier == 1 && b != nil && b.Key && b.KeyAt == ""
})
eventually(t, "a key on the bus for each machine tier 0 was sent to", func() bool { return len(heldKeys()) == 2 })