]> Cypherpunks repositories - gostls13.git/commit
testing/synctest: add Sleep
authorDamien Neil <dneil@google.com>
Wed, 28 Jan 2026 23:04:46 +0000 (15:04 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 2 Feb 2026 22:43:36 +0000 (14:43 -0800)
commit8ac41b52c4b7a6ab9c41d008abbe254270200b8e
treea3fa91b65a385138e2385f5b77b4b04500def277
parent62d08234b797806796af0d51051f2e13caa42e2a
testing/synctest: add Sleep

Add a convenience function which combines time.Sleep and synctest.Wait.

Fixes #77169

Change-Id: I2ff105105e95cfd8e5b4f72ccacf7afa59efb6bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/740066
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
api/next/77169.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/testing/synctest/77169.md [new file with mode: 0644]
src/testing/synctest/synctest.go