Skip to content

Commit

Permalink
[LimitRange tests]: Fix cleanup of limitrange
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Kalenyuk <[email protected]>
  • Loading branch information
akalenyu committed Apr 17, 2023
1 parent b08e5ed commit 5e80bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/storage/hotplug.go
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ var _ = SIGDescribe("Hotplug", func() {

AfterEach(func() {
if lr != nil {
err = virtClient.CoreV1().LimitRanges(namespace).Delete(context.Background(), lr.Name, metav1.DeleteOptions{})
err = virtClient.CoreV1().LimitRanges(lr.Namespace).Delete(context.Background(), lr.Name, metav1.DeleteOptions{})
if !errors.IsNotFound(err) {
Expect(err).ToNot(HaveOccurred())
}
Expand Down

0 comments on commit 5e80bfb

Please sign in to comment.