@@ -58,7 +58,8 @@ var _ = Describe("Streaming Consumers", func() {
5858 })
5959
6060 It ("Multi Consumers per client" , func () {
61- env , err := NewEnvironment (NewEnvironmentOptions ().SetMaxConsumersPerClient (2 ))
61+ env , err := NewEnvironment (NewEnvironmentOptions ().
62+ SetMaxConsumersPerClient (2 ))
6263 Expect (err ).NotTo (HaveOccurred ())
6364 streamName := uuid .New ().String ()
6465 Expect (env .DeclareStream (streamName , nil )).
@@ -161,7 +162,9 @@ var _ = Describe("Streaming Consumers", func() {
161162 consumer , err := env .NewConsumer (streamName ,
162163 func (consumerContext ConsumerContext , message * amqp.Message ) {
163164 atomic .AddInt32 (& messagesReceived , 1 )
164- }, NewConsumerOptions ().SetOffset (OffsetSpecification {}.Offset (50 )))
165+ }, NewConsumerOptions ().
166+ SetOffset (OffsetSpecification {}.Offset (50 )).
167+ SetCRCCheck (true ))
165168 Expect (err ).NotTo (HaveOccurred ())
166169
167170 Eventually (func () int32 {
@@ -185,6 +188,7 @@ var _ = Describe("Streaming Consumers", func() {
185188 }, NewConsumerOptions ().
186189 SetOffset (OffsetSpecification {}.First ()).
187190 SetConsumerName ("my_auto_consumer" ).
191+ SetCRCCheck (false ).
188192 SetAutoCommit (NewAutoCommitStrategy ().
189193 SetCountBeforeStorage (100 ).
190194 SetFlushInterval (50 * time .Second ))) // here we set a high value to do not trigger the time
@@ -206,6 +210,7 @@ var _ = Describe("Streaming Consumers", func() {
206210 }, NewConsumerOptions ().
207211 SetOffset (OffsetSpecification {}.First ()).
208212 SetConsumerName ("my_auto_consumer_timer" ).
213+ SetCRCCheck (true ).
209214 SetAutoCommit (NewAutoCommitStrategy ().
210215 SetCountBeforeStorage (10000000 ). /// We avoid raising the timer
211216 SetFlushInterval (1 * time .Second )))
0 commit comments