mirror of
https://github.com/slackhq/nebula.git
synced 2026-08-15 15:26:59 +02:00
Don't fail on the batch at the first error (#1826)
This commit is contained in:
@@ -79,11 +79,11 @@ func TestWriteBatchNoAllocs(t *testing.T) {
|
||||
t.Helper()
|
||||
var werr error
|
||||
// Warm-up outside the measured runs.
|
||||
if err := tx.WriteBatch(bufs, addrs, ecns); err != nil {
|
||||
if _, err := tx.WriteBatch(bufs, addrs, ecns); err != nil {
|
||||
t.Fatalf("WriteBatch warm-up: %v", err)
|
||||
}
|
||||
allocs := testing.AllocsPerRun(100, func() {
|
||||
if err := tx.WriteBatch(bufs, addrs, ecns); err != nil {
|
||||
if _, err := tx.WriteBatch(bufs, addrs, ecns); err != nil {
|
||||
werr = err
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user