EndTestErrorCapture stops collecting errors and returns all accumulated errors.
()
| 2900 | |
| 2901 | // EndTestErrorCapture stops collecting errors and returns all accumulated errors. |
| 2902 | func (p *Proxy) EndTestErrorCapture() []error { |
| 2903 | if acc := p.activeTestErrors.Swap(nil); acc != nil { |
| 2904 | return acc.drain() |
| 2905 | } |
| 2906 | return nil |
| 2907 | } |
| 2908 | |
| 2909 | // GetErrorChannel returns the error channel for external monitoring. |
| 2910 | // Once StartProxy has run, StartErrorDrain continuously drains this channel in a |