Skip to content

Commit 3500d8b

Browse files
committed
refactor: pass context to Overcommit function in tests
1 parent 687b3c4 commit 3500d8b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/overcommit/make_overcommit_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package overcommit
77

88
import (
9+
"context"
910
"os"
1011

1112
. "github.com/onsi/ginkgo/v2"
@@ -91,7 +92,7 @@ var _ = Describe("Overcommit", func() {
9192

9293
Describe("makeOvercommit", func() {
9394
It("should apply overcommit to containers", func() {
94-
Overcommit(pod, recorder, k8sClient)
95+
Overcommit(context.Background(), pod, recorder, k8sClient)
9596

9697
Expect(pod.Spec.Containers[0].Resources.Requests).To(Equal(expectedRequests))
9798
})
@@ -108,7 +109,7 @@ var _ = Describe("Overcommit", func() {
108109
})
109110

110111
It("should mutate pod containers and record an event", func() {
111-
Overcommit(pod, recorder, k8sClient)
112+
Overcommit(context.Background(), pod, recorder, k8sClient)
112113

113114
Expect(pod.Spec.Containers[0].Resources.Requests).To(Equal(expectedRequests))
114115
})

0 commit comments

Comments
 (0)