provider/azure: tests are racy

Bug #1223901 reported by Roger Peppe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Medium
Andrew Wilkins

Bug Description

go test -race launchpad.net/juju-core/provider/azure

prints many races.
I was prompted to look at this from an intermittent test failure
on my machine:

 FAIL: environ_test.go:766: environSuite.TestStopInstancesWithLimitedConcurrency

 environ_test.go:783:
     c.Check(err, gc.IsNil)
 ... value parallel.Errors = parallel.Errors{(*errors.errorString)(0xc21000a090)} ("EOF")

 environ_test.go:784:
     c.Check(len(*requests), gc.Equals, len(services)*2)
 ... obtained int = 19
 ... expected int = 20

 OOPS: 158 passed, 1 FAILED
 --- FAIL: TestAzureProvider (7.45 seconds)
 FAIL
 FAIL launchpad.net/juju-core/provider/azure 7.788s

The full output from go test -race is rather long, but I've attached the output from
running "go test -race -gocheck.f TestStopInstancesWithLimitedConcurrency"

Revision history for this message
Roger Peppe (rogpeppe) wrote :
Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
tags: added: test-failure
Curtis Hovey (sinzui)
tags: added: race-condition
Changed in juju-core:
importance: High → Medium
Revision history for this message
Andrew Wilkins (axwalk) wrote :

This was fixed at the same time availability sets were implemented.

Changed in juju-core:
status: Triaged → Fix Committed
assignee: nobody → Andrew Wilkins (axwalk)
milestone: none → 1.19.0
Andrew Wilkins (axwalk)
Changed in juju-core:
status: Fix Committed → Fix Released
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.