TestWorkerDiscoversSpaces no subnets found

Bug #1545057 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Michael Foord

Bug Description

As seen in
    http://reports.vapour.ws/releases/issue/56b4ba24749a5601cd4ffcb3

worker_test.go:179:
    c.Check(len(subnets), gc.Equals, len(expected.Subnets))
... obtained int = 0
... expected int = 1

Revision history for this message
Michael Foord (mfoord) wrote :

It looks like we can get the right number of spaces added before all the subnets have been added (subnets must be added following the space creation as the subnets reference the space). This means the test finds the spaces but not the subnets.

Instead that test should wait for discovery to complete instead of waiting until there are four spaces.

Revision history for this message
Michael Foord (mfoord) wrote :
Changed in juju-core:
assignee: nobody → Michael Foord (mfoord)
status: Triaged → In Progress
Michael Foord (mfoord)
Changed in juju-core:
status: In Progress → Fix Committed
Changed in juju-core:
milestone: none → 2.0-beta3
Aaron Bentley (abentley)
tags: added: tech-debt
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
tags: added: 2.0-count
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta3 → none
milestone: none → 2.0-beta3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.