Skip to content

Commit

Permalink
Revert "Test fixes"
Browse files Browse the repository at this point in the history
This reverts commit efdd300.
  • Loading branch information
benhoyt committed Nov 16, 2020
1 parent 1ac0e46 commit dd577df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions provider/common/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ func (*ErrorsSuite) TestWrapZoneIndependentError(c *gc.C) {

stack := errors.ErrorStack(wrapped)
c.Assert(stack, gc.Matches, `
.*/provider/common/errors_test.go:.*: foo
.*/provider/common/errors_test.go:.*: bar
.*/provider/common/errors_test.go:.*: bar: foo`[1:])
.*/juju/juju/provider/common/errors_test.go:.*: foo
.*/juju/juju/provider/common/errors_test.go:.*: bar
.*/juju/juju/provider/common/errors_test.go:.*: bar: foo`[1:])
}

func (s *ErrorsSuite) TestInvalidCredentialWrapped(c *gc.C) {
Expand All @@ -46,9 +46,9 @@ func (s *ErrorsSuite) TestInvalidCredentialWrapped(c *gc.C) {

stack := errors.ErrorStack(err)
c.Assert(stack, gc.Matches, `
.*/provider/common/errors_test.go:.*: foo
.*/provider/common/errors_test.go:.*: bar
.*/provider/common/errors_test.go:.*: bar: foo`[1:])
.*/juju/juju/provider/common/errors_test.go:.*: foo
.*/juju/juju/provider/common/errors_test.go:.*: bar
.*/juju/juju/provider/common/errors_test.go:.*: bar: foo`[1:])
}

func (s *ErrorsSuite) TestInvalidCredentialNew(c *gc.C) {
Expand Down
2 changes: 1 addition & 1 deletion provider/ec2/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ var findInstanceSpecErrorTests = []struct {
{
series: version.DefaultSupportedLTS(),
arches: []string{"arm"},
err: fmt.Sprintf(`no metadata for "%s" images in test with arches \[arm\]`, version.DefaultSupportedLTS()),
err: fmt.Sprintf(`no "%s" images in test with arches \[arm\]`, version.DefaultSupportedLTS()),
}, {
series: "raring",
arches: []string{"amd64", "i386"},
Expand Down
2 changes: 1 addition & 1 deletion provider/openstack/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ func (s *localServerSuite) TestPrecheckInstanceAvailZone(c *gc.C) {
func (s *localServerSuite) TestPrecheckInstanceAvailZoneUnavailable(c *gc.C) {
placement := "zone=test-unavailable"
err := s.env.PrecheckInstance(s.callCtx, environs.PrecheckInstanceParams{Series: jujuversion.DefaultSupportedLTS(), Placement: placement})
c.Assert(err, gc.ErrorMatches, `availability zone "test-unavailable" is unavailable`)
c.Assert(err, gc.ErrorMatches, `zone "test-unavailable" is unavailable`)
}

func (s *localServerSuite) TestPrecheckInstanceAvailZoneUnknown(c *gc.C) {
Expand Down

0 comments on commit dd577df

Please sign in to comment.