mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 11:42:14 +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:
@@ -301,6 +301,7 @@ func TestProxyHandler(t *testing.T) {
|
||||
target := &targetHTTPHandler{}
|
||||
for name, tc := range tests {
|
||||
target.Reset()
|
||||
legacyregistry.Reset()
|
||||
|
||||
func() {
|
||||
targetServer := httptest.NewUnstartedServer(target)
|
||||
|
Reference in New Issue
Block a user