cli/command: TestInitializeFromClientHangs fix unhandled error

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-11-22 15:11:08 +01:00
parent e36d5a0929
commit 9c42cd9a3e
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}() }()