123456789101112131415 |
- 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
- }
|