Skip to content

Commit

Permalink
Bumping up retries and sleep time
Browse files Browse the repository at this point in the history
If 10 1-second waits aren't enough then it's likely that the "no
reachable servers" error isn't transient.
  • Loading branch information
babbageclunk committed Jul 6, 2016
1 parent 6d88d84 commit ddea9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions txn/mgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ func (s *MgoSuite) TearDownSuite(c *C) {

func (s *MgoSuite) SetUpTest(c *C) {
var err error
for attempt := 1; attempt < 4; attempt++ {
for attempt := 1; attempt < 11; attempt++ {
err = DropAll(mgoaddr)
if err != nil {
c.Logf("Retrying DropAll - attempt %v failed with %v", attempt, err)
time.Sleep(200 * time.Millisecond)
time.Sleep(time.Second)
} else {
break
}
Expand Down

0 comments on commit ddea9f6

Please sign in to comment.