Commit 097e2c0a authored by Emmanuel Odeke's avatar Emmanuel Odeke Committed by Brad Fitzpatrick

net/http: fix typo in comment in main_test

Change-Id: I22d4b5a0d5c146a65d4ef77a32e23f7780ba1d95
Reviewed-on: https://go-review.googlesource.com/22684Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 35d342b4
...@@ -123,7 +123,7 @@ func afterTest(t testing.TB) { ...@@ -123,7 +123,7 @@ func afterTest(t testing.TB) {
// waitCondition reports whether fn eventually returned true, // waitCondition reports whether fn eventually returned true,
// checking immediately and then every checkEvery amount, // checking immediately and then every checkEvery amount,
// until waitFor has elpased, at which point it returns false. // until waitFor has elapsed, at which point it returns false.
func waitCondition(waitFor, checkEvery time.Duration, fn func() bool) bool { func waitCondition(waitFor, checkEvery time.Duration, fn func() bool) bool {
deadline := time.Now().Add(waitFor) deadline := time.Now().Add(waitFor)
for time.Now().Before(deadline) { for time.Now().Before(deadline) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment