test: increase num of frames examined by TestClientServer_FullStacktrace (#2334)

When the runtime is allocating memory the stack trace needed to reach
user code might be greater than 10 frames.
This commit is contained in:
Alessandro Arzilli 2021-02-22 22:31:06 +01:00 committed by GitHub
parent 54d0d56b9e
commit d739cb04e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -728,7 +728,7 @@ func Test1ClientServer_FullStacktrace(t *testing.T) {
assertNoError(err, t, "GoroutinesInfo()")
found := make([]bool, 10)
for _, g := range gs {
frames, err := c.Stacktrace(g.ID, 10, true)
frames, err := c.Stacktrace(g.ID, 40, true)
assertNoError(err, t, fmt.Sprintf("Stacktrace(%d)", g.ID))
t.Logf("goroutine %d", g.ID)
for i, frame := range frames {

@ -923,7 +923,7 @@ func TestClientServer_FullStacktrace(t *testing.T) {
assertNoError(err, t, "GoroutinesInfo()")
found := make([]bool, 10)
for _, g := range gs {
frames, err := c.Stacktrace(g.ID, 10, 0, &normalLoadConfig)
frames, err := c.Stacktrace(g.ID, 40, 0, &normalLoadConfig)
assertNoError(err, t, fmt.Sprintf("Stacktrace(%d)", g.ID))
t.Logf("goroutine %d", g.ID)
for i, frame := range frames {