mirror of https://github.com/docker/cli.git
cli/command: TestInitializeFromClientHangs fix unhandled error
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
e36d5a0929
commit
9c42cd9a3e
|
@ -200,7 +200,8 @@ func TestInitializeFromClientHangs(t *testing.T) {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
cli := &DockerCli{client: apiClient, initTimeout: time.Millisecond}
|
cli := &DockerCli{client: apiClient, initTimeout: time.Millisecond}
|
||||||
cli.Initialize(flags.NewClientOptions())
|
err := cli.Initialize(flags.NewClientOptions())
|
||||||
|
assert.Check(t, err)
|
||||||
close(initializedCh)
|
close(initializedCh)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue