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:
parent
54d0d56b9e
commit
d739cb04e3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user