mirror of
https://github.com/moby/moby.git
synced 2026-07-07 07:07:26 +00:00
DeadlineExceeded now implements a TimeOut() function,
since dc4427f372
Check for this interface, to prevent possibly incorrect failures;
```
00:16:41 --- FAIL: TestClientWithRequestTimeout (0.00s)
00:16:41 client_test.go:259: assertion failed:
00:16:41 --- context.DeadlineExceeded
00:16:41 +++ err
00:16:41 :
00:16:41 -: context.deadlineExceededError{}
00:16:41 +: &net.OpError{Op: "dial", Net: "tcp", Addr: s"127.0.0.1:49294", Err: &poll.TimeoutError{}}
00:16:41
```
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>