improve node status test debug info

Change-Id: I6baacee3d253e64d4bc017d9da7e0ea0ec9783f1
pull/6/head
m1093782566 2016-08-19 09:20:47 +08:00
parent 57ad590d8d
commit 5bb76e9b5a
1 changed files with 3 additions and 2 deletions

View File

@ -489,7 +489,7 @@ func TestUpdateExistingNodeStatus(t *testing.T) {
}
if !api.Semantic.DeepEqual(expectedNode, updatedNode) {
t.Errorf("expected \n%v\n, got \n%v", expectedNode, updatedNode)
t.Errorf("unexpected objects: %s", diff.ObjectDiff(expectedNode, updatedNode))
}
}
@ -644,7 +644,8 @@ func TestUpdateExistingNodeOutOfDiskStatusWithTransitionFrequency(t *testing.T)
}
if !reflect.DeepEqual(tc.expected, oodCondition) {
t.Errorf("%d.\nwant \n%v\n, got \n%v", tcIdx, tc.expected, oodCondition)
t.Errorf("%d.\nunexpected objects: %s", tcIdx, diff.ObjectDiff(tc.expected, oodCondition))
}
}
}