Skip to content

Commit

Permalink
Fix test using nil allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Feb 18, 2025
1 parent 7b5eef0 commit 34022b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions arrow/flight/flightsql/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func getAction(cmd proto.Message) *flight.Action {
func (s *FlightSqlClientSuite) SetupTest() {
s.mockClient = FlightServiceClientMock{}
s.sqlClient.Client = &s.mockClient
s.sqlClient.Alloc = memory.DefaultAllocator
s.callOpts = []grpc.CallOption{grpc.EmptyCallOption{}}
}

Expand Down
2 changes: 1 addition & 1 deletion arrow/memory/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Buffer struct {

parent *Buffer
// alloc is the "real" allocation to pass to Free, if applicable
alloc []byte
alloc []byte
}

// NewBufferWithAllocator returns a buffer with the mutable flag set
Expand Down

0 comments on commit 34022b6

Please sign in to comment.