diff options
| author | Vladimir Varankin <vladimir@varank.in> | 2024-08-20 09:19:22 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-08-20 14:58:54 +0000 |
| commit | f432b5f756c223564fd397b7568bd2ce949c7c6f (patch) | |
| tree | 119a05f7aec6246b8844201608ddfc1787a5c9f1 /api | |
| parent | c6c9634515e6128a5acb8645dced62581f5d1b1b (diff) | |
| download | go-f432b5f756c223564fd397b7568bd2ce949c7c6f.tar.xz | |
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>
Diffstat (limited to 'api')
| -rw-r--r-- | api/next/36532.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/next/36532.txt b/api/next/36532.txt new file mode 100644 index 0000000000..ac4ec95a8f --- /dev/null +++ b/api/next/36532.txt @@ -0,0 +1,4 @@ +pkg testing, method (*B) Context() context.Context #36532 +pkg testing, method (*F) Context() context.Context #36532 +pkg testing, method (*T) Context() context.Context #36532 +pkg testing, type TB interface, Context() context.Context #36532 |
