Count the work the take-ins start in the background, so a test's mesh closes only once that work has ended (issue 1851, A5-A7; issue 1790, D3)

This commit is contained in:
2026-10-22 20:41:30 +02:00
parent 420ae3d0e7
commit bc80683b9e
5 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ var keyTakes = struct {
// the buckets and the records; a done key not recorded yet is taken in off the plans' hold, and its end asks the look.
func settleFromKeys(ctx context.Context, open *stores, keys planKeyReads, p *inventory.Plan, tier []string) (bool, error) {
return settleKeys(ctx, open.inventory, keys, p, tier, func(module string, trunk sdkdelivery.Module, id string) {
go takeKeyOffTheHold(context.WithoutCancel(ctx), open, module, trunk, id)
inBackground(func() { takeKeyOffTheHold(context.WithoutCancel(ctx), open, module, trunk, id) })
})
}