Skip to content

Commit

Permalink
Adding a higher default timeout for a quick test
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanHilt committed Feb 2, 2024
1 parent 5d0409d commit 8ce7606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ func GetDataSourceDB(sourceConnectionString string, dbSchema string) *DbAndSchem

// Adds a default timeout to a query
func AddTimeoutToQuery(query *gorm.DB) (*gorm.DB, context.CancelFunc) {
// default timeout of 3 minutes:
query, cancel := AddSpecificTimeoutToQuery(query, 180*time.Second)
// default timeout of 6 minutes:
query, cancel := AddSpecificTimeoutToQuery(query, 360*time.Second)
return query, cancel
}

Expand Down

0 comments on commit 8ce7606

Please sign in to comment.