remove ReallyCrashForTesting and cleaned up some references to HandleCrash behavior

This commit is contained in:
Sergey Kanzhelev
2021-05-04 00:10:11 +00:00
parent 9a75e7b0fd
commit a11453efbc
10 changed files with 5 additions and 58 deletions

View File

@@ -33,7 +33,6 @@ import (
discovery "k8s.io/api/discovery/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/kubernetes/pkg/proxy"
ipttest "k8s.io/kubernetes/pkg/util/iptables/testing"
@@ -186,9 +185,6 @@ var tcpServerPort int32
var udpServerPort int32
func TestMain(m *testing.M) {
// Don't handle panics
runtime.ReallyCrash = true
// TCP setup.
tcp := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)