summaryrefslogtreecommitdiff
path: root/client/swarm_inspect_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/swarm_inspect_test.go')
-rw-r--r--client/swarm_inspect_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/swarm_inspect_test.go b/client/swarm_inspect_test.go
index 7143e77181..6432d172b4 100644
--- a/client/swarm_inspect_test.go
+++ b/client/swarm_inspect_test.go
@@ -15,7 +15,7 @@ import (
func TestSwarmInspectError(t *testing.T) {
client := &Client{
- transport: newMockClient(nil, errorMock(http.StatusInternalServerError, "Server error")),
+ client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")),
}
_, err := client.SwarmInspect(context.Background())
@@ -27,7 +27,7 @@ func TestSwarmInspectError(t *testing.T) {
func TestSwarmInspect(t *testing.T) {
expectedURL := "/swarm"
client := &Client{
- transport: newMockClient(nil, func(req *http.Request) (*http.Response, error) {
+ client: newMockClient(func(req *http.Request) (*http.Response, error) {
if !strings.HasPrefix(req.URL.Path, expectedURL) {
return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL)
}