Skip to content

Commit 8917950

Browse files
authored
Merge pull request kubernetes#126641 from haircommander/storage-test
e2e/storage: update block device test to always specify a valid path
2 parents c8259fb + 41e6162 commit 8917950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/storage/volume_metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ var _ = utils.SIGDescribe(framework.WithSerial(), "Volume metrics", func() {
285285
pod := makePod(f, pvcBlock, isEphemeral)
286286
pod.Spec.Containers[0].VolumeDevices = []v1.VolumeDevice{{
287287
Name: pod.Spec.Volumes[0].Name,
288-
DevicePath: "/mnt/" + pvcBlock.Name,
288+
DevicePath: "/mnt/" + pod.Spec.Volumes[0].Name,
289289
}}
290290
pod.Spec.Containers[0].VolumeMounts = nil
291291
pod, err = c.CoreV1().Pods(ns).Create(ctx, pod, metav1.CreateOptions{})

0 commit comments

Comments
 (0)