Skip to content

Commit

Permalink
Add comment to consistency test on MountpointPodNameFor
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Varlı <[email protected]>
  • Loading branch information
unexge committed Nov 26, 2024
1 parent fbddcf8 commit 229a751
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/podmounter/mppod/mppod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func TestGeneratingMountpointPodName(t *testing.T) {
Spec: corev1.PersistentVolumeClaimSpec{VolumeName: "test-vol"},
}

// Ensure `MountpointPodNameFor` returns a consistent output for the same Pod and PVC.
assert.Equals(t,
mppod.MountpointPodNameFor(string(pod.UID), pvc.Spec.VolumeName),
mppod.MountpointPodNameFor(string(pod.UID), pvc.Spec.VolumeName))
Expand Down

0 comments on commit 229a751

Please sign in to comment.