e2e: kill the last pod in recovery test

The last pod could have not come up yet.
A simple solution is to kill the last pod.
This commit is contained in:
Hongchao Deng 2017-04-21 10:22:39 -07:00
Родитель dcb8fc06b6
Коммит a039719057
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -64,7 +64,8 @@ func testOneMemberRecovery(t *testing.T) {
}
fmt.Println("reached to 3 members cluster")
if err := killMembers(f, names[0]); err != nil {
// The last pod could have not come up serving yet. If we are not killing the last pod, we should wait.
if err := killMembers(f, names[2]); err != nil {
t.Fatal(err)
}
if _, err := waitUntilSizeReached(t, f, testEtcd.Metadata.Name, 3, 60*time.Second); err != nil {