Skip to content

Commit 02a3535

Browse files
committed
Fix
1 parent 232f572 commit 02a3535

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

pulsar/internal/key_based_batch_builder_test.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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-
4033
type 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
)

pulsar/producer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)