~ubuntu-branches/ubuntu/trusty/juju-core/trusty-proposed

« back to all changes in this revision

Viewing changes to src/labix.org/v2/mgo/export_test.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-29 11:40:20 UTC
  • mfrom: (23.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20140129114020-ejieitm8smtt5vln
Tags: 1.17.1-0ubuntu2
d/tests/local-provider: Don't fail tests if ~/.juju is present as its
created by the juju version command. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        pingDelay = newDelay
22
22
        return
23
23
}
 
24
 
 
25
func HackSyncSocketTimeout(newTimeout time.Duration) (restore func()) {
 
26
        oldTimeout := syncSocketTimeout
 
27
        restore = func() {
 
28
                syncSocketTimeout = oldTimeout
 
29
        }
 
30
        syncSocketTimeout = newTimeout
 
31
        return
 
32
}