]> Cypherpunks repositories - gostls13.git/commit
synctest: fix comments for time.Now() in synctests
authorChristian Hoeppner <hoeppi@google.com>
Fri, 4 Jul 2025 18:40:42 +0000 (18:40 +0000)
committerDamien Neil <dneil@google.com>
Thu, 10 Jul 2025 20:16:07 +0000 (13:16 -0700)
commitaa5de9ebb55bbd5e0a38304f8f8e603b2ec03238
tree80fbcef7b26d315d93b5c807021866ba3568a2f5
parent63ec70d4e1350f44caf950cf3f675ae2cb7ea453
synctest: fix comments for time.Now() in synctests

Also add a test case to make sure that time.Now() results in the
documented date.

Change-Id: Ic4cc577eba485b7c6e1a64122da06d7075bbe12e
Reviewed-on: https://go-review.googlesource.com/c/go/+/685677
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Christian Höppner <hoeppi@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/testing/synctest/example_test.go
src/testing/synctest/synctest.go
src/testing/synctest/synctest_test.go