Skip to content

Commit

Permalink
Fix timeout for auto update integration tests (#47928)
Browse files Browse the repository at this point in the history
* Fix timout for auto update integration tests

* Increase timeout to one minute
  • Loading branch information
vapopov authored Oct 25, 2024
1 parent 399c16a commit 458a32a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/autoupdate/tools/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var (
// TestUpdate verifies the basic update logic. We first download a lower version, then request
// an update to a newer version, expecting it to re-execute with the updated version.
func TestUpdate(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()

// Fetch compiled test binary with updater logic and install to $TELEPORT_HOME.
Expand Down Expand Up @@ -88,7 +88,7 @@ func TestUpdate(t *testing.T) {
// first update is complete, other processes should acquire the lock one by one and re-execute
// the command with the updated version without any new downloads.
func TestParallelUpdate(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()

// Initial fetch the updater binary un-archive and replace.
Expand Down Expand Up @@ -162,7 +162,7 @@ func TestParallelUpdate(t *testing.T) {

// TestUpdateInterruptSignal verifies the interrupt signal send to the process must stop downloading.
func TestUpdateInterruptSignal(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()

// Initial fetch the updater binary un-archive and replace.
Expand Down

0 comments on commit 458a32a

Please sign in to comment.