From fc2c185ec27e4e93ca923726339b5c61dfeff00f Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Tue, 26 Oct 2021 16:37:45 -0700 Subject: [PATCH] remove extra bracelet --- test/integration/cert_options_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/integration/cert_options_test.go b/test/integration/cert_options_test.go index 539e38acfe..a78ffc5f40 100644 --- a/test/integration/cert_options_test.go +++ b/test/integration/cert_options_test.go @@ -72,7 +72,7 @@ func TestCertOptions(t *testing.T) { } // verify that the apiserver is serving on port 8555 - if NeedsPortForward() { // docker/podman on non-linux the port will be a "random assigned port" in kubeconfig + if NeedsPortForward() { // in case of docker/podman on non-linux the port will be a "random assigned port" in kubeconfig bin := "docker" if PodmanDriver() { bin = "podman" @@ -80,14 +80,11 @@ func TestCertOptions(t *testing.T) { port, err := oci.ForwardedPort(bin, profile, 8555) if err != nil { - { - t.Errorf("failed to inspect container for the port %v", err) - } + t.Errorf("failed to inspect container for the port %v", err) } if port == 0 { t.Errorf("expected to get a non-zero forwarded port but got %d", port) } - } else { rr, err = Run(t, exec.CommandContext(ctx, "kubectl", "--context", profile, "config", "view")) if err != nil {