diff --git a/test/config_test.go b/test/config_test.go index 078bac27..7c0571b0 100644 --- a/test/config_test.go +++ b/test/config_test.go @@ -112,7 +112,7 @@ func TestConfigureDocker(t *testing.T) { helper.Stdout = &out helper.Stderr = os.Stderr if err = helper.Run(); err != nil { - t.Fatalf("Failed to execute `configure-docker --overwrite`: %v Stdout: %s", err, string(out.Bytes())) + t.Fatalf("Failed to execute `configure-docker --overwrite`: %v Stdout: %s", err, out.String()) } dockerConfig, err = getDockerConfig() @@ -156,7 +156,7 @@ func TestConfigureDocker_NonDefault(t *testing.T) { helper.Stdout = &out helper.Stderr = os.Stderr if err = helper.Run(); err != nil { - t.Fatalf("Failed to execute `configure-docker --overwrite`: %v Stdout: %s", err, string(out.Bytes())) + t.Fatalf("Failed to execute `configure-docker --overwrite`: %v Stdout: %s", err, out.String()) } dockerConfig, err = getDockerConfig() diff --git a/test/e2e_test.go b/test/e2e_test.go index bab98e7d..34fe8e95 100644 --- a/test/e2e_test.go +++ b/test/e2e_test.go @@ -114,7 +114,7 @@ func TestEndToEnd_GCRCreds(t *testing.T) { helper.Stdout = &out helper.Stdin = strings.NewReader(gcrRegistry) if err = helper.Run(); err != nil { - t.Fatalf("`get` failed: %v, Stdout: %s", err, string(out.Bytes())) + t.Fatalf("`get` failed: %v, Stdout: %s", err, out.String()) } // Verify the credentials