mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #111419 from muyangren2/json_assert
Fix test order staging/src/k8s.io/component-base/logs/json/json_test.go
This commit is contained in:
commit
a4a22a2562
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user