Use timeout smaller than 10 seconds

closes #959
This commit is contained in:
Pierre Fersing
2016-04-04 11:59:28 +02:00
committed by Michele Fadda
parent 37e45f8680
commit 5b70e1f2df
3 changed files with 4 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ func testSetup(m *testing.M) {
log.Fatalf("Unable to parse URL (%s), %s\n", dialAddrs[0], err.Error())
}
dialInfo.Direct = true
dialInfo.Timeout = time.Duration(10) * time.Second
dialInfo.Timeout = 5 * time.Second
sess, err := mgo.DialWithInfo(dialInfo)
if err != nil {
log.Fatalf("Unable to connect to MongoDB, %s\n", err.Error())