Fix crash in test

pull/6/head
Daniel Smith 2014-06-26 16:56:02 -07:00
parent 001b07b292
commit be39c3d646
1 changed files with 3 additions and 2 deletions

View File

@ -898,8 +898,9 @@ func TestWatchEtcd(t *testing.T) {
close(updateChannel)
read := reader.GetList()
if len(read) != 1 ||
!reflect.DeepEqual(read[0], manifest) {
if len(read) != 1 {
t.Errorf("Expected number of results: %v", len(read))
} else if !reflect.DeepEqual(read[0], manifest) {
t.Errorf("Unexpected manifest(s) %#v %#v", read[0], manifest)
}
}