File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2354,12 +2354,12 @@ func TestProducerSendWithContext(t *testing.T) {
23542354}
23552355
23562356func TestFailPendingMessageWithClose (t * testing.T ) {
2357- client , err := NewClient (ClientOptions {
2357+ c , err := NewClient (ClientOptions {
23582358 URL : lookupURL ,
23592359 })
23602360 assert .NoError (t , err )
2361- defer client .Close ()
2362- testProducer , err := client .CreateProducer (ProducerOptions {
2361+ defer c .Close ()
2362+ testProducer , err := c .CreateProducer (ProducerOptions {
23632363 Topic : newTopicName (),
23642364 DisableBlockIfQueueFull : false ,
23652365 BatchingMaxPublishDelay : 100000 ,
@@ -2379,7 +2379,7 @@ func TestFailPendingMessageWithClose(t *testing.T) {
23792379 }
23802380 partitionProducerImp := testProducer .(* producer ).producers [0 ].(* partitionProducer )
23812381 partitionProducerImp .pendingQueue .Put (& pendingItem {
2382- buffer : buffersPool .GetBuffer (0 ),
2382+ buffer : c .( * client ). buffersPool .GetBuffer (0 ),
23832383 })
23842384 testProducer .Close ()
23852385 assert .Equal (t , 0 , partitionProducerImp .pendingQueue .Size ())
You can’t perform that action at this time.
0 commit comments