fix tests after excplicit header alloc change

This commit is contained in:
Patricio Whittingslow
2026-07-27 12:22:20 -03:00
parent 0e2f487e9f
commit 0d1f50fc48
8 changed files with 124 additions and 58 deletions
+5 -1
View File
@@ -43,7 +43,11 @@ func benchExchange(b *testing.B, conn conn) *Exchange {
const bufferSize = 1024
const numHeaderCap = 2
exch := new(Exchange)
exch.Configure(make([]byte, 2*bufferSize), bufferSize, numHeaderCap, false)
exch.Configure(ExchangeConfig{
RawBuf: make([]byte, 2*bufferSize),
RequestBufferLim: bufferSize,
NumHeaderKVCap: numHeaderCap,
})
if !exch.Acquire(conn) {
b.Fatal("fresh exchange failed to acquire connection")
}