]> Cypherpunks repositories - gostls13.git/commit
runtime: make TestDebugLogInterleaving much more robust
authorAustin Clements <austin@google.com>
Wed, 24 Jul 2024 03:09:07 +0000 (23:09 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 30 Jul 2024 17:16:52 +0000 (17:16 +0000)
commitc7227bc72c5ceaf9f957473cdde4753edc6155cd
treef9265b09fd37e2ea17727952c0f55f95dbb1298a
parentcc258e6785060345a497d44b6073c91b81e32576
runtime: make TestDebugLogInterleaving much more robust

The current test often doesn't actually generate enough interleaving
to result in multiple log shards. This CL rewrites this test to
forcibly create at least 10 log shards with interleaved log messages.
It also tests dlog's robustness to being held across M and P switches.

Change-Id: Ia913b17c0392384ff679832047f359945669bb15
Reviewed-on: https://go-review.googlesource.com/c/go/+/600699
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Austin Clements <austin@google.com>
src/runtime/debuglog_test.go
src/runtime/export_debuglog_test.go