Skip to content

Commit fabd616

Browse files
acosta11ctlong
authored andcommitted
fix: use Succeed() instead of BeNil()
golangci-lint -> ginkgolinter v0.17.0 update to check async assertions
1 parent b56f3d1 commit fabd616

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/internal/cache/log_cache_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ var _ = Describe("LogCache", func() {
202202
es = resp.Envelopes.Batch
203203
return nil
204204
}
205-
Eventually(f).Should(BeNil())
205+
Eventually(f).Should(Succeed())
206206

207207
Expect(es[0].Timestamp).To(Equal(int64(4)))
208208
Expect(es[0].SourceId).To(Equal("src-zero"))
@@ -258,7 +258,7 @@ var _ = Describe("LogCache", func() {
258258

259259
return nil
260260
}
261-
Eventually(f).Should(BeNil())
261+
Eventually(f).Should(Succeed())
262262
})
263263

264264
It("queries data via PromQL Range Queries", func() {
@@ -302,7 +302,7 @@ var _ = Describe("LogCache", func() {
302302

303303
return nil
304304
}
305-
Eventually(f).Should(BeNil())
305+
Eventually(f).Should(Succeed())
306306
})
307307

308308
It("routes envelopes to peers", func() {
@@ -370,7 +370,7 @@ var _ = Describe("LogCache", func() {
370370
es = resp.Envelopes.Batch
371371
return nil
372372
}
373-
Eventually(f).Should(BeNil())
373+
Eventually(f).Should(Succeed())
374374

375375
Expect(es[0].Timestamp).To(Equal(int64(1)))
376376
Expect(es[0].SourceId).To(Equal("src-zero"))

0 commit comments

Comments
 (0)