payload/persistence intermittent failure

Bug #1519061 reported by Michael Foord
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Eric Snow
1.25
Fix Released
High
Cheryl Jennings

Bug Description

When run on wily, with go 1.3 or 1.5 there's an intermittent test failure:

$ go test github.com/juju/juju/payload/persistence

----------------------------------------------------------------------
FAIL: env_test.go:80: envPersistenceSuite.TestListAllEmpty

env_test.go:98:
    s.Stub.CheckCallNames(c,
        "Machines",
        "MachineUnits",
        "MachineUnits",
        "newUnitPersistence",
        "ListAll",
        "newUnitPersistence",
        "ListAll",
    )
/home/michael/canonical/src/github.com/juju/testing/stub.go:211:
    return c.Check(funcNames, jc.DeepEquals, expected)
... obtained []string = []string{"Machines", "MachineUnits", "newUnitPersistence", "ListAll", "newUnitPersistence", "ListAll", "MachineUnits"}
... expected []string = []string{"Machines", "MachineUnits", "MachineUnits", "newUnitPersistence", "ListAll", "newUnitPersistence", "ListAll"}
... mismatch at [2]: unequal; obtained "newUnitPersistence"; expected "MachineUnits"

----------------------------------------------------------------------
FAIL: env_test.go:51: envPersistenceSuite.TestListAllOkay

env_test.go:77:
    s.Stub.CheckCallNames(c,
        "Machines",
        "MachineUnits",
        "MachineUnits",
        "newUnitPersistence",
        "ListAll",
        "newUnitPersistence",
        "ListAll",
        "MachineUnits",
        "newUnitPersistence",
        "ListAll",
    )
/home/michael/canonical/src/github.com/juju/testing/stub.go:211:
    return c.Check(funcNames, jc.DeepEquals, expected)
... obtained []string = []string{"Machines", "MachineUnits", "newUnitPersistence", "ListAll", "MachineUnits", "MachineUnits", "newUnitPersistence", "ListAll", "newUnitPersistence", "ListAll"}
... expected []string = []string{"Machines", "MachineUnits", "MachineUnits", "newUnitPersistence", "ListAll", "newUnitPersistence", "ListAll", "MachineUnits", "newUnitPersistence", "ListAll"}
... mismatch at [2]: unequal; obtained "newUnitPersistence"; expected "MachineUnits"

OOPS: 17 passed, 2 FAILED
--- FAIL: Test (0.00 seconds)
FAIL

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.26-beta1
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Eric Snow (ericsnowcurrently)
Changed in juju-core:
status: In Progress → Fix Committed
Changed in juju-core:
milestone: 1.26-beta1 → 2.0-alpha1
Changed in juju-core:
milestone: 2.0-alpha1 → 1.26-alpha3
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
tags: added: intermittent-failure test-failure
tags: added: ci
tags: added: 2.0-count
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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