Read what a machine has from its haves: reported-and-current, the bus list, a given value's first good start; drop the digest of a send (migration 0110) (release 6, issue 1945 B8)
This commit is contained in:
@@ -208,10 +208,3 @@ func (i *Inventory) PlanValuesForTest(t *testing.T) map[string][]byte {
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
// RecordSentForTest gives a machine the digest and time of a last send, as a test needs one to stand in for a send: nothing
|
||||
// sends a declaration any more (ADR 0539 §5), so nothing in the controller writes them.
|
||||
func (i *Inventory) RecordSentForTest(ctx context.Context, node, digest string) error {
|
||||
_, err := i.store.Pool().Exec(ctx, `update node set sent = $2, sent_at = now() where id = $1`, node, digest)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user