Skip to content

Commit d4cf358

Browse files
authored
fix: lint issue (#307)
1 parent cf046b0 commit d4cf358

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

internal/controller/pod_controller_test.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"time"
2323

2424
. "github.com/onsi/ginkgo/v2"
25-
"github.com/onsi/gomega"
2625
. "github.com/onsi/gomega"
2726

2827
tfv1 "github.com/NexusGPU/tensor-fusion/api/v1"
@@ -88,7 +87,7 @@ var _ = Describe("Pod Controller", func() {
8887

8988
AfterEach(func() {
9089
if workerPod != nil {
91-
k8sClient.Delete(ctx, workerPod)
90+
_ = k8sClient.Delete(ctx, workerPod)
9291
}
9392
})
9493

@@ -198,10 +197,10 @@ var _ = Describe("Pod Controller", func() {
198197

199198
AfterEach(func() {
200199
if workload != nil {
201-
k8sClient.Delete(ctx, workload)
200+
_ = k8sClient.Delete(ctx, workload)
202201
}
203202
if clientPod != nil {
204-
k8sClient.Delete(ctx, clientPod)
203+
_ = k8sClient.Delete(ctx, clientPod)
205204
}
206205
})
207206

@@ -220,7 +219,7 @@ var _ = Describe("Pod Controller", func() {
220219
}).Should(Succeed())
221220

222221
By("verifying connection has correct spec and owner reference")
223-
Eventually(func(g gomega.Gomega) error {
222+
Eventually(func(g Gomega) error {
224223
g.Expect(connection.Spec.WorkloadName).To(Equal(workload.Name))
225224
g.Expect(connection.Spec.ClientPod).To(Equal(clientPod.Name))
226225
g.Expect(connection.Labels[constants.WorkloadKey]).To(Equal(workload.Name))
@@ -358,10 +357,10 @@ var _ = Describe("Pod Controller", func() {
358357

359358
AfterEach(func() {
360359
if workload != nil {
361-
k8sClient.Delete(ctx, workload)
360+
_ = k8sClient.Delete(ctx, workload)
362361
}
363362
if pod != nil {
364-
k8sClient.Delete(ctx, pod)
363+
_ = k8sClient.Delete(ctx, pod)
365364
}
366365
})
367366

0 commit comments

Comments
 (0)