From e4cccb11ec1cbb3e92f7eada69ff1adc1cd5e798 Mon Sep 17 00:00:00 2001 From: Dhruv-J Date: Mon, 3 Jul 2023 09:46:26 -0700 Subject: [PATCH] goformat Signed-off-by: Dhruv-J --- test/e2e/framework.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e/framework.go b/test/e2e/framework.go index 75e54f6f..16d823f8 100644 --- a/test/e2e/framework.go +++ b/test/e2e/framework.go @@ -96,7 +96,7 @@ const ( clickHouseLocalPvLabel string = "antrea.io/clickhouse-data-node" clickHouseLocalPvPath string = "/data/clickhouse" clickhouseMonitorCovFolder string = "clickhouse-monitor-coverage" - theiaManagerCovFolder string = "theia-manager-coverage" + theiaManagerCovFolder string = "theia-manager-coverage" agnhostImage = "registry.k8s.io/e2e-test-images/agnhost:2.29" busyboxImage = "projects.registry.vmware.com/antrea/busybox" @@ -1543,7 +1543,7 @@ func (data *TestData) copyPodFiles(podName string, containerName string, nsName fmt.Println(fmt.Sprintf("FILE PATH ERROR IS NOT NIL: %v", err)) return nil } - fmt.Println("QWERTY destination file is: "+destFile) + fmt.Println("QWERTY destination file is: " + destFile) f, err := os.Create(destFile) if err != nil { fmt.Println(fmt.Sprintf("FILE CREATION ERROR IS NOT NIL: %v", err)) @@ -1588,7 +1588,7 @@ func (data *TestData) collectCovFiles(namespace, podName, containerName, covDir return fmt.Errorf("error when running this find command (for coverage file) '%s' on Pod '%s', stderr: <%v>, err: <%v>", metacmd, podName, stderr, err) } stdout = strings.TrimSpace(stdout) - files = append( files, strings.Split(stdout, "\n")... ) + files = append(files, strings.Split(stdout, "\n")...) for _, file := range files { if len(file) == 0 { continue @@ -1598,7 +1598,7 @@ func (data *TestData) collectCovFiles(namespace, podName, containerName, covDir return fmt.Errorf("error when copying coverage files for antctl from Pod '%s' to coverage directory '%s': %v", podName, covDir, err) } } - return nil; + return nil } func (data *TestData) copyCovFilesFromPods(covDir string, nodeName string) error { @@ -1620,7 +1620,7 @@ func (data *TestData) copyCovFilesFromPods(covDir string, nodeName string) error } else if strings.Contains(podName, "theia-manager") { err = data.collectCovFiles("flow-visibility", pod.Name, "theia-manager", covDir+"/"+theiaManagerCovFolder) } else { - fmt.Println("no coverage files to look for"); + fmt.Println("no coverage files to look for") } if err != nil { return fmt.Errorf("error when copying coverage files from pods: copy pod files out, error:%v", err)