]> Cypherpunks repositories - gostls13.git/commit
testing: remove call to os.Exit in documentation for TestMain
authorJulian Dax <julian.dax@posteo.de>
Sun, 7 Jul 2024 21:41:02 +0000 (23:41 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 8 Jul 2024 22:10:16 +0000 (22:10 +0000)
commit87ec2c959c73e62bfae230ef7efca11ec2a90804
tree71597739c8f85a3baddf0c4944a22bf0bae8ff30
parent6d89b38ed86e0bfa0ddaba08dc4071e6bb300eea
testing: remove call to os.Exit in documentation for TestMain

In the example for the TestMain function, os.Exit was called explicitly,
which is no longer necessary since Go 1.15 (see change #219639).

Updates #34129

Change-Id: Ia8021de0d5699742adbb7ab6d28b11c841e596dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/596977
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/testing/testing.go