MachineSuite.TestWatchInterfaces intermittently fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Medium
|
Frank Mueller |
Bug Description
The following error sometimes occurs in the state package.
The issue appears to be a race between the watcher loop and the assertion. The watcher will see the two changes (two interfaces disabled) individually, but the assertion will *usually* only see them as a single event because it checks after the watcher has seen both events.
-------
FAIL: machine_
[LOG] 0:00.003 INFO juju.state opening state, mongo addresses: ["localhost:
[LOG] 0:00.003 DEBUG juju.state dialing mongo
[LOG] 0:00.005 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:40029"
[LOG] 0:00.005 DEBUG juju.state connection established
[LOG] 0:00.023 INFO juju.state adding state server info to legacy environment
[LOG] 0:00.023 INFO juju.state found existing state servers []
[LOG] 0:00.039 INFO juju.state initializing environment
machine_
wc.
testing/
c.Fatalf(
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
milestone: | none → 1.21-alpha1 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
<http:// juju-ci. vapour. ws:8080/ job/github- merge-juju/ 1/console>
FAIL: machine_ test.go: 1750: MachineSuite. TestWatchInterf aces test.go: 1808: AssertOneChange () watcher. go:76: "watcher sent unexpected change: (_, %v)", ok)
...
machine_
wc.
testing/
c.Fatalf(
... Error: watcher sent unexpected change: (_, true)
... com/juju/ juju/state 123.265s
FAIL github.
This test was added in PR 207.
<https:/ /github. com/juju/ juju/pull/ 207>
<http:// juju-ci. vapour. ws:8080/ job/github- merge-juju/ 3/console>
FAIL: server_test.go:96: serverSuite. TestAPIServerCa nListenOnBothIP v4AndIPv6 Op:"listen" , Net:"tcp", net.TCPAddr) (0xc2107e9f00) , SyscallError) (0xc21027f560) } ("listen tcp :54321: bind:
...
server_test.go:104:
c.Assert(err, gc.IsNil)
... value *net.OpError = &net.OpError{
Addr:(*
Err:(*os.
address already in use")
... com/juju/ juju/state/ apiserver 30.369s
FAIL github.
This test was added in PR 224.
<https:/ /github. com/juju/ juju/pull/ 224>