summaryrefslogtreecommitdiff
path: root/client/container_stats_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/container_stats_test.go')
-rw-r--r--client/container_stats_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/container_stats_test.go b/client/container_stats_test.go
index 22ecd6170f..76e4a09ddf 100644
--- a/client/container_stats_test.go
+++ b/client/container_stats_test.go
@@ -13,7 +13,7 @@ import (
func TestContainerStatsError(t *testing.T) {
client := &Client{
- transport: newMockClient(nil, errorMock(http.StatusInternalServerError, "Server error")),
+ client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")),
}
_, err := client.ContainerStats(context.Background(), "nothing", false)
if err == nil || err.Error() != "Error response from daemon: Server error" {
@@ -37,7 +37,7 @@ func TestContainerStats(t *testing.T) {
}
for _, c := range cases {
client := &Client{
- transport: newMockClient(nil, func(r *http.Request) (*http.Response, error) {
+ client: newMockClient(func(r *http.Request) (*http.Response, error) {
if !strings.HasPrefix(r.URL.Path, expectedURL) {
return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, r.URL)
}