Fix test order staging/src/k8s.io/component-base/logs/json/json_test.go

This commit is contained in:
muyangren2 2022-07-26 10:26:16 +08:00
parent 4a05a32c30
commit 7435085fe1

View File

@ -160,7 +160,7 @@ func TestZapLoggerV(t *testing.T) {
t.Errorf("V(%d).Info...) returned v=%d. expected v=%d", v, actualV, v)
}
expect := fmt.Sprintf(expectFormat, lineNo, v)
if !assert.Equal(t, logStr, expect) {
if !assert.Equal(t, expect, logStr) {
t.Errorf("V(%d).Info has wrong format \n expect:%s\n got:%s", v, expect, logStr)
}
buffer.Reset()