Skip to content

Commit b11d1ec

Browse files
committed
Fixed unit test
Signed-off-by: Omer Aplatony <[email protected]>
1 parent c949b0c commit b11d1ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vertical-pod-autoscaler/pkg/updater/logic/updater_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ func TestRunOnceIgnoreNamespaceMatchingPods(t *testing.T) {
383383
Get()
384384

385385
pods[i].Labels = labels
386+
pods[i].UID = types.UID(fmt.Sprintf("pod-uid-%d", i))
386387
eviction.On("CanEvict", pods[i]).Return(true)
387388
eviction.On("Evict", pods[i], nil).Return(nil)
388389
}

0 commit comments

Comments
 (0)