]> Cypherpunks repositories - gostls13.git/commit
runtime: use small struct TestSynctest to ensure cleanups run
authorDamien Neil <dneil@google.com>
Fri, 6 Jun 2025 19:59:04 +0000 (12:59 -0700)
committerDamien Neil <dneil@google.com>
Mon, 9 Jun 2025 18:15:04 +0000 (11:15 -0700)
commit985d600f3aa8654b854f8b2c822552c052ed3d30
tree75e72f64c08378a987f2e5e87883a4d91187b097
parent848a768ba76d7c386c2aa4f05bc2e9e51b5948b9
runtime: use small struct TestSynctest to ensure cleanups run

Finalizers and cleanup funcs weren't running on the windows-arm64
builder. Put finalizers/cleanups on a small struct containing a pointer
rather than an *int, which fixes the problem.

Also uncomment a synctest.Wait that was accidentally commented out.

Fixes #73977

Change-Id: Ia6f18d74d6fccf2c5a9222317977c7458d67f158
Reviewed-on: https://go-review.googlesource.com/c/go/+/679696
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/testdata/testsynctest/main.go