From 370ce5c01c2a4eb5a8166aa74435ff0c789f61a5 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Thu, 20 May 2021 19:01:20 +0200 Subject: [PATCH] tests: increase stack depth for TestFrameEvaluation (#2501) Sometimes on Windows TestFrameEvaluation fails because the stacktrace doesn't look deep enough. --- pkg/proc/proc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proc/proc_test.go b/pkg/proc/proc_test.go index 6241a1b9..550c0b89 100644 --- a/pkg/proc/proc_test.go +++ b/pkg/proc/proc_test.go @@ -1278,7 +1278,7 @@ func TestFrameEvaluation(t *testing.T) { found := make([]bool, 10) for _, g := range gs { frame := -1 - frames, err := g.Stacktrace(10, 0) + frames, err := g.Stacktrace(40, 0) if err != nil { t.Logf("could not stacktrace goroutine %d: %v\n", g.ID, err) continue