automation: scheduler unit test: Better log the found output.

This commit is contained in:
Michael Berlin 2016-01-12 00:40:19 +01:00
Родитель 526aca8e2e
Коммит be5249ea13
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -76,8 +76,8 @@ func waitForClusterOperation(t *testing.T, scheduler *Scheduler, id string, expe
}
}
if expectedOutputLastTask != "" {
if lastTc.ParallelTasks[len(lastTc.ParallelTasks)-1].Output != expectedOutputLastTask {
t.Fatalf("ClusterOperation finished but did not return expected output. want: %v Full ClusterOperation details: %v", expectedOutputLastTask, proto.MarshalTextString(getDetailsResponse.ClusterOp))
if got := lastTc.ParallelTasks[len(lastTc.ParallelTasks)-1].Output; got != expectedOutputLastTask {
t.Fatalf("ClusterOperation finished but did not return expected output. got: %v want: %v Full ClusterOperation details: %v", got, expectedOutputLastTask, proto.MarshalTextString(getDetailsResponse.ClusterOp))
}
}
if expectedErrorLastTask != "" {