juju: github.com/wallyworld/juju/mongo/mongotest Index | Files

package mongotest

import "github.com/wallyworld/juju/mongo/mongotest"


Package Files



const (
    DialTimeout   = 5 * time.Minute
    SocketTimeout = DialTimeout

func DialOpts Uses

func DialOpts() mongo.DialOpts

DialOpts returns mongo.DialOpts suitable for use in tests that operate against a real MongoDB server. The timeouts are chosen to avoid failures caused by slow I/O; we do not expect the timeouts to be reached under normal circumstances.

Package mongotest imports 2 packages (graph). Updated 2016-07-20. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).