package runner import ( "context" "errors" "testing" "time" "amadan.net/oficina/equipo/internal/runner/provider" ) func TestUncertainSendIsNotRetried(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() sends, lost := 0, 0 err := sendAdmittedTurn(ctx, func() error { sends++; return provider.ErrUncertain }, func(context.Context) error { lost++; return nil }) if !errors.Is(err, provider.ErrUncertain) || sends != 1 || lost != 1 { t.Fatalf("uncertain turn retried or not recorded: sends=%d lost=%d err=%v", sends, lost, err) } }