Give more time to start

This commit is contained in:
Jose Garcia 2021-07-15 14:35:26 +00:00 committed by GitHub
parent b28b4a13b7
commit ecea5b821a

View file

@ -110,8 +110,8 @@ func SSH(sshProfile string) error {
time.Sleep(1 * time.Second)
}
if retries == 10 {
return errors.New("Failed to start codespace")
if retries == 20 {
return errors.New("Timed out waiting for Codespace to start. Try again.")
}
codespace, err = apiClient.GetCodespace(ctx, token, codespace.OwnerLogin, codespace.Name)