Fixes #11272.
Change-Id: I78d666c20f4f7cb7116d37fd66b5f8b7d66c53c4
Reviewed-on: https://go-review.googlesource.com/11234
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
}
// It's possible we crossed a second boundary between getting now and logging,
// so add a second and try again. This should very nearly always work.
- now.Add(time.Second)
+ now = now.Add(time.Second)
want = fmt.Sprintf("Test:%d/%.2d/%.2d %.2d:%.2d:%.2d hello\n",
- now.Year(), now.Month(), now.Day(), now.Hour(), now.Minute())
+ now.Year(), now.Month(), now.Day(), now.Hour(), now.Minute(), now.Second())
if got == want {
return
}