From 7c04f126034f9e323efc220c896d75e7984ffd39 Mon Sep 17 00:00:00 2001 From: Raul Silvera Date: Fri, 18 Jan 2019 11:05:34 -0800 Subject: [PATCH] Correct previous commit --- test/heapsampling.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/heapsampling.go b/test/heapsampling.go index 229952f28a..cc72832ab4 100644 --- a/test/heapsampling.go +++ b/test/heapsampling.go @@ -111,12 +111,12 @@ func testSmallAllocations() error { allocSmall1(iters) if checkAllocations(getMemProfileRecords(), frames[0:1], iters, sizes) == nil { // Passed on first try, report no error. - return err + return nil } allocSmall2(iters) if checkAllocations(getMemProfileRecords(), frames[0:2], iters, sizes) == nil { // Passed on second try, report no error. - return err + return nil } allocSmall3(iters) // If it fails a third time, we may be onto something.