Pārlūkot izejas kodu

Merge pull request #7113 from heyitsanthony/testutil-bufsize

testutil: increase size of buffer for stack dump
Anthony Romano 9 gadi atpakaļ
vecāks
revīzija
f99c76cb47
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pkg/testutil/testutil.go

+ 1 - 1
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)