(want interface{})
| 261 | } |
| 262 | |
| 263 | func (w *ErrorWaiter) RequireAs(want interface{}) { |
| 264 | require.ErrorAs(w.t, w.Wait(), want) |
| 265 | } |
| 266 | |
| 267 | // StartWithWaiter runs the command in a goroutine but returns the error instead |
| 268 | // of asserting it. This is useful for testing error cases. |