Fix queue test (#30646)

Fix #30643

The old test code is not stable due to the data-race described in the
TODO added at that time.

Make it stable, and remove a debug-only field from old test code.
This commit is contained in:
wxiaoguang authored and GitHub committed 2024-04-22 23:55:43 +00:00
1 parent 99c5683da5
commit e6103955cc
3 files changed
+34 -19

No files matched your search

-2
View File
@@ -40,8 +40,6 @@ type WorkerPoolQueue[T any] struct {
workerMaxNum int
workerActiveNum int
workerNumMu sync.Mutex
workerStartedCounter int32
}
type flushType chan struct{}