]> Cypherpunks repositories - gostls13.git/commit
time: skip test that will fail with GO111MODULE=off
authorKevin Burke <kevin@burke.dev>
Tue, 23 Dec 2025 06:07:32 +0000 (22:07 -0800)
committerKevin Burke <kevin@burke.dev>
Tue, 23 Dec 2025 20:51:43 +0000 (12:51 -0800)
commit08dc8393d7d04f250b317cad5183415962ea56d5
tree6d55350cd33680bf6f0397849c282bc1a57d1a46
parent43ebed88cc661e37bf01d5336b5de13fba6e51c7
time: skip test that will fail with GO111MODULE=off

The test is designed to ensure that behavior introduced in Go 1.23
to garbage collect async timed channels is working correctly. If
GO111MODULE=off is set (or GODEBUG=asynctimerchan=1) Go reverts to the
Go 1.20 behavior of not garbage collecting these channels, which fails
the test.

Instead of running a test in conditions where we know it will fail,
just skip the test. A more comprehensive test does not make sense
right now because this code may go away soon.

Fixes #76948.

Change-Id: Ib186abd2ea583a06b5c246bfd6df932522cf7f1e
Reviewed-on: https://go-review.googlesource.com/c/go/+/732100
Reviewed-by: Nicholas Husin <husin@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/time/export_test.go
src/time/tick_test.go