]> Cypherpunks repositories - gostls13.git/commit
testing: add Context
authorVladimir Varankin <vladimir@varank.in>
Tue, 20 Aug 2024 09:19:22 +0000 (09:19 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 20 Aug 2024 14:58:54 +0000 (14:58 +0000)
commitf432b5f756c223564fd397b7568bd2ce949c7c6f
tree119a05f7aec6246b8844201608ddfc1787a5c9f1
parentc6c9634515e6128a5acb8645dced62581f5d1b1b
testing: add Context

Adds a new Context method to testing.T, that returns a context, that is
canceled before the end of its test function.

Fixes #36532.

Change-Id: I9315ad4dad25529d0b5be809e2d9db4e7528b5f2
GitHub-Last-Rev: 1c3fd6c4d8a9cc68a61f2df284d04d3d080216be
GitHub-Pull-Request: golang/go#68828
Reviewed-on: https://go-review.googlesource.com/c/go/+/603959
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
api/next/36532.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/testing/36532.md [new file with mode: 0644]
doc/next/6-stdlib/99-minor/testing/62516.md
src/testing/testing.go
src/testing/testing_test.go