Ask a backup holder once its module's have is running, not once a send was reported (release 6, issue 1945 B8)

This commit is contained in:
2026-10-24 18:17:30 +02:00
parent 29ef458d89
commit 3db472ce56
5 changed files with 109 additions and 49 deletions
-14
View File
@@ -68,17 +68,3 @@ func pushedBy(t *testing.T, open *stores, node string) string {
}
return digestOf(body)
}
// pushedAndApplied is pushedBy, and the machine reporting it applied that declaration.
func pushedAndApplied(t *testing.T, open *stores, node string) {
t.Helper()
digest := pushedBy(t, open, node)
record, err := open.inventory.NodeByName(t.Context(), node)
if err != nil {
t.Fatal(err)
}
if _, err := open.inventory.RecordDoing(t.Context(), record.ID, inventory.Doing{
Outcome: inventory.OutcomeApplied, Declared: digest}); err != nil {
t.Fatal(err)
}
}