]> Cypherpunks repositories - gostls13.git/commit
sync: use blockUntilCleanupQueueEmpty instead of busy-looping in tests
authorMichael Anthony Knyszek <mknyszek@google.com>
Sat, 10 May 2025 16:14:25 +0000 (16:14 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 15 May 2025 03:42:54 +0000 (20:42 -0700)
commita197a471b9c67af4881e0d9c48e4bd3cff4992c2
treee062b686b121328a1685ba77eace8a1cf8fc0ca9
parent3ea94ae446727ab75f6baa38444cf49041cb3b16
sync: use blockUntilCleanupQueueEmpty instead of busy-looping in tests

testPool currently does the old-style busy loop to wait until cleanups
have executed. Clean this up by using the linkname'd
blockUntilCleanupQueueEmpty.

For #73642.

Change-Id: Ie0c2614db858a984f25b33a805dc52948069eb52
Reviewed-on: https://go-review.googlesource.com/c/go/+/671675
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/sync/pool_test.go