mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Reset metric observed by TestProxyHandler for repeatable test runs.
This test expects x509_missing_san_total to be 1. When run with -test.count greater than 1, that expectation is unmet for all but the first test run.
This commit is contained in:
parent
f6243782d0
commit
b4d93a6567
@ -301,6 +301,7 @@ func TestProxyHandler(t *testing.T) {
|
|||||||
target := &targetHTTPHandler{}
|
target := &targetHTTPHandler{}
|
||||||
for name, tc := range tests {
|
for name, tc := range tests {
|
||||||
target.Reset()
|
target.Reset()
|
||||||
|
legacyregistry.Reset()
|
||||||
|
|
||||||
func() {
|
func() {
|
||||||
targetServer := httptest.NewUnstartedServer(target)
|
targetServer := httptest.NewUnstartedServer(target)
|
||||||
|
Loading…
Reference in New Issue
Block a user