mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
testutil: increase size of buffer for stack dump
Too many goroutines to fit all stack traces in 8kb.
This commit is contained in:
parent
a42b399f4e
commit
6ab8dcb679
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user