зеркало из https://github.com/github/vitess-gh.git
automation: scheduler unit test: Better log the found output.
This commit is contained in:
Родитель
526aca8e2e
Коммит
be5249ea13
|
@ -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 != "" {
|
||||
|
|
Загрузка…
Ссылка в новой задаче