Skip to content

Commit fd716e0

Browse files
Update pkg/ha/ha_super_stream_publisher_test.go
Co-authored-by: Alberto Moretti <[email protected]>
1 parent 7900b9c commit fd716e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/ha/ha_super_stream_publisher_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ var _ = Describe("Reliable Super Stream Producer", func() {
7070
Expect(err).NotTo(HaveOccurred())
7171
}
7272

73-
<-signal
73+
select {
74+
case <-signal:
75+
case <-time.After(5 * time.Second):
76+
Fail("Timeout waiting messages")
77+
}
7478
Expect(superProducer.Close()).NotTo(HaveOccurred())
7579
Expect(superProducer.GetStatus()).To(Equal(StatusClosed))
7680
Expect(superProducer.GetStreamName()).To(Equal(streamForSuperStreamProducer))

0 commit comments

Comments
 (0)