Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NeerajNagure committed Jun 19, 2024
1 parent 3d0416d commit 3b80688
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/dryrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"sigs.k8s.io/kwok/pkg/utils/path"
)

func loadExpectedClusterDetails(filepath string, clusterName string, rootDir string) (string, error) {
func loadExpectedClusterDetails(filepath string) (string, error) {
data, err := os.ReadFile(filepath)
if err != nil {
return "", err
Expand All @@ -42,12 +42,12 @@ func CaseDryrun(clusterName string, kwokctlPath string, rootDir string) *feature
f = f.Assess("test cluster dryrun", func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
var expected string
var err error
expected, err = loadExpectedClusterDetails(path.Join(rootDir, "test/kwokctl/testdata/binary/create_cluster.txt"), clusterName, rootDir)
expected, err = loadExpectedClusterDetails(path.Join(rootDir, "test/kwokctl/testdata/binary/create_cluster.txt"))
if err != nil {
t.Fatal("Could not get expected cluster details:", err)
}
t.Log("EXPECTED CLUSTER:", expected)
cmd := exec.Command(kwokctlPath, "create", "cluster", "--name="+clusterName, "--dry-run", "--runtime=binary", "--kube-authorization=false", "--disable-qps-limits", "--quiet-pull", "--timeout=30m", "--wait=30m")
cmd := exec.Command(kwokctlPath, "create", "cluster", "--name", clusterName, "--dry-run", "--runtime=binary", "--kube-authorization=false", "--disable-qps-limits", "--quiet-pull", "--timeout=30m", "--wait=30m")
var output []byte
output, err = cmd.Output()
if err != nil {
Expand Down

0 comments on commit 3b80688

Please sign in to comment.