Delete redundant print 'got:'

This commit is contained in:
zhangxiaoyu-zidif
2017-08-01 18:56:06 +08:00
parent 1bc56825a2
commit c984245f9b

View File

@@ -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) {
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) {
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])