Commit 7d9e77d6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #49938 from zhangxiaoyu-zidif/fix-err-cronjob-utils-test-got

Automatic merge from submit-queue Delete redundant print 'got:' **What this PR does / why we need it**: Delete redundant print 'got:' **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/kubernetes/kubernetes/issues/50592 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 58c85e27 c984245f
...@@ -322,7 +322,7 @@ func TestGetRecentUnmetScheduleTimes(t *testing.T) { ...@@ -322,7 +322,7 @@ func TestGetRecentUnmetScheduleTimes(t *testing.T) {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
if len(times) != 0 { if len(times) != 0 {
t.Errorf("expected 0 start times, got: , got: %v", times) t.Errorf("expected 0 start times, got: %v", times)
} }
} }
{ {
...@@ -338,7 +338,7 @@ func TestGetRecentUnmetScheduleTimes(t *testing.T) { ...@@ -338,7 +338,7 @@ func TestGetRecentUnmetScheduleTimes(t *testing.T) {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
if len(times) != 1 { if len(times) != 1 {
t.Errorf("expected 2 start times, got: , got: %v", times) t.Errorf("expected 1 start times, got: %v", times)
} else if !times[0].Equal(T2) { } else if !times[0].Equal(T2) {
t.Errorf("expected: %v, got: %v", T1, times[0]) t.Errorf("expected: %v, got: %v", T1, times[0])
} }
...@@ -354,7 +354,7 @@ func TestGetRecentUnmetScheduleTimes(t *testing.T) { ...@@ -354,7 +354,7 @@ func TestGetRecentUnmetScheduleTimes(t *testing.T) {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
if len(times) != 2 { if len(times) != 2 {
t.Errorf("expected 2 start times, got: , got: %v", times) t.Errorf("expected 2 start times, got: %v", times)
} else { } else {
if !times[0].Equal(T1) { if !times[0].Equal(T1) {
t.Errorf("expected: %v, got: %v", T1, times[0]) t.Errorf("expected: %v, got: %v", T1, times[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment