mirror of
https://github.com/golang/go
synced 2024-11-23 07:40:04 -07:00
runtime: increase stack limit in a test
Otherwise the test is flaky. Fixes #4698. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7133071
This commit is contained in:
parent
018e89fa69
commit
3c25cd2784
@ -1571,7 +1571,7 @@ func TestStackMem(t *testing.T) {
|
||||
if consumed > estimate {
|
||||
t.Fatalf("Stack mem: want %v, got %v", estimate, consumed)
|
||||
}
|
||||
if s1.StackInuse > 1<<20 {
|
||||
t.Fatalf("Stack inuse: want %v, got %v", 1<<20, s1.StackInuse)
|
||||
if s1.StackInuse > 4<<20 {
|
||||
t.Fatalf("Stack inuse: want %v, got %v", 4<<20, s1.StackInuse)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user