go.net/context: adjust TestAlloc so it passes on windows
Do not assume that a particular code path is selected in WithTimeout. Also Windows cannot wait for less then 15 millisecond, so use that instead of 1 nanosecond in test. Otherwise test takes too long while it looks like it is quick. Fixes golang/go#8033. LGTM=crawshaw R=golang-codereviews, crawshaw CC=golang-codereviews https://golang.org/cl/103470044
Showing
Please
register
or
sign in
to comment