Skip to content

Commit

Permalink
clean up parm in func
Browse files Browse the repository at this point in the history
  • Loading branch information
umagnus committed Nov 20, 2023
1 parent 0639823 commit 2c83115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (t *DynamicallyProvisionedInlineVolumeTest) Run(ctx context.Context, client
for _, pod := range t.Pods {
var tpod *TestPod
var cleanup []func(context.Context)
tpod, cleanup = pod.SetupWithCSIInlineVolumes(client, namespace, t.CSIDriver, t.SecretName, t.ContainerName, t.ReadOnly)
tpod, cleanup = pod.SetupWithCSIInlineVolumes(client, namespace, t.SecretName, t.ContainerName, t.ReadOnly)

// defer must be called here for resources not get removed before using them
for i := range cleanup {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/testsuites/specs.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type DataSource struct {
Name string
}

func (pod *PodDetails) SetupWithCSIInlineVolumes(client clientset.Interface, namespace *v1.Namespace, _ driver.DynamicPVTestDriver, secretName, shareName string, readOnly bool) (*TestPod, []func(context.Context)) {
func (pod *PodDetails) SetupWithCSIInlineVolumes(client clientset.Interface, namespace *v1.Namespace, secretName, shareName string, readOnly bool) (*TestPod, []func(context.Context)) {
tpod := NewTestPod(client, namespace, pod.Cmd)
cleanupFuncs := make([]func(ctx context.Context), 0)
for n, v := range pod.Volumes {
Expand Down

0 comments on commit 2c83115

Please sign in to comment.