replace spew methods with dump methods

This commit is contained in:
Hao Ruan
2023-04-13 09:41:07 +08:00
parent c3e3ff989a
commit c4e1b01416
33 changed files with 80 additions and 100 deletions

View File

@@ -23,12 +23,11 @@ import (
"testing"
"time"
"github.com/davecgh/go-spew/spew"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/util/dump"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/informers"
@@ -112,7 +111,7 @@ func TestNamespaceCondition(t *testing.T) {
}
}
t.Log(spew.Sdump(curr))
t.Log(dump.Pretty(curr))
return conditionsFound == 5, nil
})
if err != nil {