Fix existing unit tests

This commit is contained in:
Jan Safranek
2022-03-21 11:05:37 +01:00
parent b2e18c0b20
commit de7f5b66ed
5 changed files with 63 additions and 55 deletions

View File

@@ -785,7 +785,7 @@ func TestGetPodVolumeNames(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
mounts, devices := GetPodVolumeNames(test.pod)
mounts, devices, _ := GetPodVolumeNames(test.pod)
if !mounts.Equal(test.expectedMounts) {
t.Errorf("Expected mounts: %q, got %q", mounts.List(), test.expectedMounts.List())
}