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

package mongotest

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

Index

Package Files

opts.go

Constants

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) and is imported by 68 packages. Updated 2016-07-19. Refresh now. Tools for package owners.