Intermittent test failure - PresenceSuite.TestWatchPeriod
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Triaged
|
High
|
Unassigned |
Bug Description
FAIL: presence_
[LOG] 71.85107 INFO juju state/presence: Faking presence to time slot 0
[LOG] 71.85109 INFO juju state/presence: Not faking presence time. Real time slot in use.
presence_
assertChange(c, ch, presence.
presence_
c.Fatalf("watch reported nothing, want %v", want)
... Error: watch reported nothing, want {a true}
OOPS: 11 passed, 1 FAILED
--- FAIL: TestPackage (7.60 seconds)
FAIL
FAIL launchpad.
I had this fail two or three times in a row running all the tests from root using "go test ./..."
I then went into the state/presence directory and ran the tests, all passed twice, moved back up to state, and ran all the tests from there, passed twice in a row, then back up to the project root, and the tests passed again twice in a row.
It seems to be very timing based, so should be looked at.