Skip to content

Commit

Permalink
Remove timeout for TestUpdate (#51666)
Browse files Browse the repository at this point in the history
  • Loading branch information
vapopov authored Jan 30, 2025
1 parent c0b3e62 commit e3c36a0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions integration/autoupdate/tools/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ var (
// an update to a newer version, expecting it to re-execute with the updated version.
func TestUpdate(t *testing.T) {
t.Setenv(types.HomeEnvVar, t.TempDir())
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()
ctx := context.Background()

// Fetch compiled test binary with updater logic and install to $TELEPORT_HOME.
updater := tools.NewUpdater(
Expand Down Expand Up @@ -88,8 +87,7 @@ func TestUpdate(t *testing.T) {
// the command with the updated version without any new downloads.
func TestParallelUpdate(t *testing.T) {
t.Setenv(types.HomeEnvVar, t.TempDir())
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()
ctx := context.Background()

// Initial fetch the updater binary un-archive and replace.
updater := tools.NewUpdater(
Expand Down Expand Up @@ -162,8 +160,7 @@ func TestParallelUpdate(t *testing.T) {
// TestUpdateInterruptSignal verifies the interrupt signal send to the process must stop downloading.
func TestUpdateInterruptSignal(t *testing.T) {
t.Setenv(types.HomeEnvVar, t.TempDir())
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()
ctx := context.Background()

// Initial fetch the updater binary un-archive and replace.
updater := tools.NewUpdater(
Expand Down

0 comments on commit e3c36a0

Please sign in to comment.