statusHistoryTestSuite teardown fails on windows
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | juju-core |
Critical
|
Tim Penhey | ||
Bug Description
The new statusHistoryTe
<http://
FAIL: api_test.go:1: statusHistoryTe
.../github.
c.Assert(err, jc.ErrorIsNil)
... value syscall.Errno = 0x2 ("The system cannot find the file specified.")
-------
PANIC: statushistory_
... Panic: Fixture has panicked (see related PANIC)
OOPS: 209 passed, 1 FAILED, 3 MISSED
2015-09-09 04:01:39 ERROR juju.testing mgo.go:274 mongodb has exited without being killed
Added in <https:/
| Changed in juju-core: | |
| milestone: | none → 1.26-alpha1 |
| Changed in juju-core: | |
| importance: | High → Critical |
| Martin Packman (gz) wrote : | #1 |
| Tim Penhey (thumper) wrote : | #2 |
The problem here is that the actual test executables are executed in parallel, and the base os env suite on windows puts the feature flag values into the windows registry.
There is a race between the different test packages running as to who or when the registry key is deleted.
This bug is showing up because two concurrent tests thought they were creating the key, and one deleted it before the other.
The solution here is not to use the registry for this part of the test setup as it is unnecessary.
| Changed in juju-core: | |
| status: | Triaged → In Progress |
| assignee: | nobody → Tim Penhey (thumper) |
| Changed in juju-core: | |
| status: | In Progress → Fix Committed |
| Changed in juju-core: | |
| status: | Fix Committed → Fix Released |


This goes for relationsSuite from worker/ uniter/ relation as well, same issue.
FAIL: mock_test.go:1: relationsSuite. TearDownTest
c:/.../ src/github. com/juju/ juju/testing/ base_windows. go:59:
c.Assert(err, jc.ErrorIsNil)
... value syscall.Errno = 0x2 ("The system cannot find the file specified.")
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- test.go: 384: relationsSuite. TestHookRelatio nBroken
PANIC: relations_
request 0, Life
...
request 12, GetPrincipal
... Panic: Fixture has panicked (see related PANIC)