mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c66c0447ef
Signed-off-by: Daniel Nephin <dnephin@docker.com>
15 lines
322 B
Go
15 lines
322 B
Go
package request
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/docker/docker/client"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
// NewAPIClient returns a docker API client configured from environment variables
|
|
func NewAPIClient(t *testing.T) client.APIClient {
|
|
clt, err := client.NewEnvClient()
|
|
require.NoError(t, err)
|
|
return clt
|
|
}
|