Skip to content

Commit 6aca89c

Browse files
committed
RONDB-951: RDRS1 Fixed Heap Tests
1 parent c94a0e9 commit 6aca89c

File tree

1 file changed

+1
-1
lines changed
  • storage/ndb/rest-server/rest-api-server/internal/dal/heap

1 file changed

+1
-1
lines changed

storage/ndb/rest-server/rest-api-server/internal/dal/heap/heap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func TestHeap(t *testing.T) {
8484
// Note that we now have more FreeBuffers than initially
8585
// TODO: Figure out whether we want this to happen
8686
stats = heap.GetNativeBuffersStats()
87-
if stats.FreeBuffers != allocations {
87+
if stats.FreeBuffers != int64(conf.Internal.PreAllocatedBuffers) {
8888
t.Fatalf("Number of free buffers does not match. Expecting: %d, Got: %d",
8989
allocations, stats.FreeBuffers)
9090
}

0 commit comments

Comments
 (0)