]> Cypherpunks repositories - gostls13.git/commit
runtime/secret: make tests more sturdy
authorDaniel Morsing <daniel.morsing@gmail.com>
Sun, 28 Dec 2025 09:29:47 +0000 (09:29 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 30 Dec 2025 15:33:35 +0000 (07:33 -0800)
commit1843cfbcd6bd0e1f7650c663c6c4608bc1cd8829
tree3d69ba5f37dd220833ad709e95e9a28e91ba3b6d
parentfd45d70799853ef5980a559e206353574108d8da
runtime/secret: make tests more sturdy

Technically, the garbage collector can take an arbitrary long time until
it finds a given value unreachable. Account for this fact in our zeroing
tests.

Updates #76586.

Change-Id: Ieaf3cec99afb9204a32524ea559c5f1a280a59e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/732980
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/secret/secret_test.go