WARNING: DATA RACE
Write by goroutine 125:
sync/atomic.CompareAndSwapInt32()
/home/dfc/go/src/runtime/race_amd64.s:279 +0xb
sync.(*Mutex).Lock()
/home/dfc/go/src/sync/mutex.go:43 +0x4d
github.com/juju/juju/environs/configstore.(*environInfo).BootstrapConfig()
/home/dfc/src/github.com/juju/juju/environs/configstore/disk.go:200 +0x46
github.com/juju/juju/environs/configstore.(*memInfo).BootstrapConfig()
<autogenerated>:17 +0x50
github.com/juju/juju/juju_test.(*infoWithWriteNotify).BootstrapConfig()
<autogenerated>:55 +0x6a
github.com/juju/juju/juju.getConfig()
/home/dfc/src/github.com/juju/juju/juju/api.go:332 +0x97
github.com/juju/juju/juju.newAPIFromStore.func3()
/home/dfc/src/github.com/juju/juju/juju/api.go:179 +0xb9
github.com/juju/utils/parallel.(*Try).Start.func1()
/home/dfc/src/github.com/juju/utils/parallel/try.go:135 +0x54
Previous read by goroutine 78:
github.com/juju/juju/environs/configstore.(*memInfo).clone()
/home/dfc/src/github.com/juju/juju/environs/configstore/mem.go:29 +0x75
github.com/juju/juju/environs/configstore.(*memInfo).Write()
/home/dfc/src/github.com/juju/juju/environs/configstore/mem.go:97 +0x225
github.com/juju/juju/juju_test.(*infoWithWriteNotify).Write()
/home/dfc/src/github.com/juju/juju/juju/api_test.go:834 +0x91
github.com/juju/juju/juju.cacheChangedAPIInfo()
/home/dfc/src/github.com/juju/juju/juju/api.go:542 +0x45a
github.com/juju/juju/juju.newAPIFromStore()
/home/dfc/src/github.com/juju/juju/juju/api.go:234 +0xde6
github.com/juju/juju/juju.NewAPIFromStore()
/home/dfc/src/github.com/juju/juju/juju/export_test.go:27 +0xef
github.com/juju/juju/juju_test.(*NewAPIClientSuite).TestNoEnvironTagDoesntOverwriteCached()
/home/dfc/src/github.com/juju/juju/juju/api_test.go:486 +0xcbb
runtime.call32()
/home/dfc/go/src/runtime/asm_amd64.s:437 +0x3d
reflect.Value.Call()
/home/dfc/go/src/reflect/value.go:300 +0xcd
gopkg.in/check%2ev1.(*suiteRunner).forkTest.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:772 +0x5e0
gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1()
/home/dfc/src/gopkg.in/check.v1/check.go:666 +0x80
Goroutine 125 (running) created at:
github.com/juju/utils/parallel.(*Try).loop()
/home/dfc/src/github.com/juju/utils/parallel/try.go:86 +0x1a4
github.com/juju/utils/parallel.NewTry.func1()
/home/dfc/src/github.com/juju/utils/parallel/try.go:62 +0x69
Goroutine 78 (running) created at:
gopkg.in/check%2ev1.(*suiteRunner).forkCall()
/home/dfc/src/gopkg.in/check.v1/check.go:667 +0x486
gopkg.in/check%2ev1.(*suiteRunner).forkTest()
/home/dfc/src/gopkg.in/check.v1/check.go:804 +0x126
gopkg.in/check%2ev1.(*suiteRunner).runTest()
/home/dfc/src/gopkg.in/check.v1/check.go:809 +0x38
gopkg.in/check%2ev1.(*suiteRunner).run()
/home/dfc/src/gopkg.in/check.v1/check.go:615 +0x481
gopkg.in/check%2ev1.Run()
/home/dfc/src/gopkg.in/check.v1/run.go:92 +0x50
gopkg.in/check%2ev1.RunAll()
/home/dfc/src/gopkg.in/check.v1/run.go:84 +0x133
gopkg.in/check%2ev1.TestingT()
/home/dfc/src/gopkg.in/check.v1/run.go:72 +0x4b5
github.com/juju/testing.MgoTestPackage()
/home/dfc/src/github.com/juju/testing/mgo.go:353 +0x17b
github.com/juju/juju/testing.MgoTestPackage()
/home/dfc/src/github.com/juju/juju/testing/mgo.go:15 +0x4a
github.com/juju/juju/juju_test.Test()
/home/dfc/src/github.com/juju/juju/juju/deploy_test.go:28 +0x2e
testing.tRunner()
/home/dfc/go/src/testing/testing.go:455 +0xdc
==================
OK: 34 passed, 1 skipped
PASS
Found 1 data race(s)
FAIL github.com/juju/juju/juju 13.880s