Skip to content

Commit

Permalink
Longer timeout for mongodb test container
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp committed Aug 25, 2022
1 parent 7e0106e commit bd11bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/testhelpers/mongodb/mongodbhelper.go
Expand Up @@ -55,8 +55,8 @@ func PrepareTestContainerWithDatabase(t *testing.T, version, dbName string) (fun
}
defer session.Close()

session.SetSyncTimeout(1 * time.Minute)
session.SetSocketTimeout(1 * time.Minute)
session.SetSyncTimeout(5 * time.Minute)
session.SetSocketTimeout(5 * time.Minute)
err = session.Ping()
if err != nil {
return nil, err
Expand Down

0 comments on commit bd11bb7

Please sign in to comment.