moby--moby/pkg/plugins
Sebastiaan van Stijn a02539b3e8
Harden TestClientWithRequestTimeout
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>
(cherry picked from commit c7816c5323)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-08-14 15:21:34 +02:00
..
pluginrpc-gen
transport
client.go
client_test.go Harden TestClientWithRequestTimeout 2019-08-14 15:21:34 +02:00
discovery.go
discovery_test.go
discovery_unix.go
discovery_unix_test.go
discovery_windows.go
errors.go
plugin_test.go
plugins.go
plugins_unix.go
plugins_windows.go