Skip to content

Commit 805eec7

Browse files
authored
fix testdataFile variable value assignment (#3579)
fix testdataFile variable value assignment
1 parent 77afa25 commit 805eec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/policy_driven_vol_allocation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ var _ = ginkgo.Describe("[vol-allocation] Policy driven volume space allocation
13811381
var op []byte
13821382
if !windowsEnv {
13831383
rand.New(rand.NewSource(time.Now().Unix()))
1384-
testdataFile := fmt.Sprintf("/tmp/testdata_%v_%v", time.Now().Unix(), rand.Intn(1000))
1384+
testdataFile = fmt.Sprintf("/tmp/testdata_%v_%v", time.Now().Unix(), rand.Intn(1000))
13851385
ginkgo.By(fmt.Sprintf("Creating a 100mb test data file %v", testdataFile))
13861386
op, err = exec.Command("dd", "if=/dev/urandom", fmt.Sprintf("of=%v", testdataFile),
13871387
"bs=1M", "count=100").Output()

0 commit comments

Comments
 (0)