Skip to content

Commit

Permalink
fix: increased timeouts for test and iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Kutovoy committed Jan 2, 2025
1 parent 7fa0db1 commit 8cd6361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions speed/speed.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ func RunTests(serverIDs []string) error {
debug.FreeOSMemory()
}()

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

for _, id := range serverIDs {
id = strings.TrimSpace(id)
serverCtx, serverCancel := context.WithTimeout(ctx, 2*time.Minute)
serverCtx, serverCancel := context.WithTimeout(ctx, 5*time.Minute)

if err := runAllTests(serverCtx, id); err != nil {
log.Printf("Tests failed for server ID %s: %v", id, err)
Expand Down

0 comments on commit 8cd6361

Please sign in to comment.