Skip to content

Commit

Permalink
Increase max timeout for client reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielNagy committed Mar 8, 2024
1 parent edbb00e commit 1df84dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/internal/remote/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (c Client) Upload(localPath string, remotePath string) error {
// Reboot reboots the remote host and waits for it to come back online, then
// reestablishes the SSH connection.
// It first waits for the host to go offline, then returns an error if the host
// does not come back online within 1 minute.
// does not come back online within 3 minutes.
func (c *Client) Reboot() error {
log.Infof("Rebooting host %q", c.client.RemoteAddr().String())
_, _ = c.Run(context.Background(), "reboot")
Expand All @@ -251,7 +251,7 @@ func (c *Client) Reboot() error {
return fmt.Errorf("host did not go offline in time")
}

ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
defer cancel()

// Wait for the host to come back online
Expand Down

0 comments on commit 1df84dd

Please sign in to comment.