test/chan: avoid wrap-around in memstats comparison
The select2.go test assumed that the memory allocated between its two samplings of runtime.ReadMemStats is strictly increasing. To avoid failing the tests when this is not true, a greater-than check is introduced before computing the difference in allocated memory. R=golang-dev, r, cshapiro CC=golang-dev https://golang.org/cl/13701046
Showing
Please register or sign in to comment