From 6ab8dcb679984ecd1f8201326821eaf32ae44ce5 Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Fri, 6 Jan 2017 17:14:42 -0800 Subject: [PATCH] testutil: increase size of buffer for stack dump Too many goroutines to fit all stack traces in 8kb. --- pkg/testutil/testutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/testutil/testutil.go b/pkg/testutil/testutil.go index a67eded1e..db2dd3285 100644 --- a/pkg/testutil/testutil.go +++ b/pkg/testutil/testutil.go @@ -50,7 +50,7 @@ func MustNewURL(t *testing.T, s string) *url.URL { // FatalStack helps to fatal the test and print out the stacks of all running goroutines. func FatalStack(t *testing.T, s string) { - stackTrace := make([]byte, 8*1024) + stackTrace := make([]byte, 1024*1024) n := runtime.Stack(stackTrace, true) t.Error(string(stackTrace[:n])) t.Fatalf(s)