File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,6 @@ import (
3030 "google.golang.org/protobuf/proto"
3131)
3232
33- type mockBufferPool struct {
34- }
35-
36- func (m * mockBufferPool ) GetBuffer () Buffer {
37- return nil
38- }
39-
4033type mockEncryptor struct {
4134}
4235
@@ -53,7 +46,7 @@ func TestKeyBasedBatcherOrdering(t *testing.T) {
5346 1 ,
5447 pb .CompressionType_NONE ,
5548 compression .Level (0 ),
56- & mockBufferPool {},
49+ & bufferPoolImpl {},
5750 log .NewLoggerWithLogrus (logrus .StandardLogger ()),
5851 & mockEncryptor {},
5952 )
Original file line number Diff line number Diff line change @@ -2734,7 +2734,7 @@ func TestSendingBuffersCleanupAfterMultipleReconnections(t *testing.T) {
27342734 // Send many messages asynchronously without waiting for completion
27352735 // This generates a lot of sending buffers that need to be cleaned up
27362736 for j := 0 ; j < 1000 ; j ++ {
2737- p .SendAsync (t . Context (), & ProducerMessage {
2737+ p .SendAsync (context . Background (), & ProducerMessage {
27382738 Payload : []byte ("test" ),
27392739 }, nil )
27402740 }
You can’t perform that action at this time.
0 commit comments