Skip to content

Commit

Permalink
goformat
Browse files Browse the repository at this point in the history
Signed-off-by: Dhruv-J <[email protected]>
  • Loading branch information
Dhruv-J committed Jul 3, 2023
1 parent a67d996 commit e4cccb1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand All @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit e4cccb1

Please sign in to comment.