Share repair histories while debug artifacts wait for indices
This commit is contained in:
@@ -28,10 +28,11 @@ import (
|
||||
)
|
||||
|
||||
type repairClient struct {
|
||||
t *testing.T
|
||||
outputs []string
|
||||
calls []structuredoutput.Request
|
||||
err error
|
||||
t *testing.T
|
||||
outputs []string
|
||||
calls []structuredoutput.Request
|
||||
err error
|
||||
capturePrepared func(*structuredoutput.PreparedSnapshot)
|
||||
}
|
||||
|
||||
func TestRepairBranchesRetargetAndPreserveOtherApprovals(t *testing.T) {
|
||||
@@ -474,6 +475,9 @@ func (c *repairClient) Coordinate(ctx context.Context, _ *structuredoutput.Excha
|
||||
return false, err
|
||||
}
|
||||
return client.Coordinate(ctx, base.Exchange, budget, func(ctx context.Context, turn structuredoutput.Turn) (*structuredoutput.Request, error) {
|
||||
if turn.Response != nil && c.capturePrepared != nil {
|
||||
c.capturePrepared(turn.Response.Prepared)
|
||||
}
|
||||
req, err := next(ctx, turn)
|
||||
if req != nil && err == nil {
|
||||
selected = req
|
||||
|
||||
Reference in New Issue
Block a user