]> Cypherpunks repositories - gostls13.git/commit
expvar: add the missing deletion step for keys
authorapocelipes <seve3r@outlook.com>
Thu, 4 Apr 2024 06:59:50 +0000 (06:59 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 4 Apr 2024 14:46:19 +0000 (14:46 +0000)
commit0f10ffec13a1eecb2b18e0b9d75773faf42e7ebd
tree2824616635da100a8ee75932265b69e7df487920
parent7dd8f39ebac6d8b27c0ad7cf421aa5d71f155220
expvar: add the missing deletion step for keys

In CL575777 I forgot to remove the key from the "sync.Map".
This did not cause the test to fail due to the lack of an associated
testcase. Now delete the key correctly and add the testcase.

Change-Id: I26f770966a828caa02f1766675756b67894dc195
GitHub-Last-Rev: a351ce095b5256fd1351d71f09ba38fdcdfce3d9
GitHub-Pull-Request: golang/go#66675
Reviewed-on: https://go-review.googlesource.com/c/go/+/576395
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: qiu laidongfeng2 <2645477756@qq.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
src/expvar/expvar.go
src/expvar/expvar_test.go