Skip to content

Commit

Permalink
Fix tests with RefreshOne arg changes, and Build return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlanigan committed Oct 26, 2021
1 parent 1aa125e commit b683e0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charmhub/refresh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func (s *RefreshConfigSuite) TestRefreshOneWithMetricsBuild(c *gc.C) {
}

func (s *RefreshConfigSuite) TestRefreshOneFail(c *gc.C) {
_, err := RefreshOne("", 1, "latest/stable", RefreshBase{
_, err := RefreshOne("instance-key", "", 1, "latest/stable", RefreshBase{
Name: "ubuntu",
Channel: "20.04",
Architecture: arch.DefaultArchitecture,
Expand Down Expand Up @@ -667,7 +667,7 @@ func (s *RefreshConfigSuite) TestDownloadOneFromRevisionBuild(c *gc.C) {

config = DefineInstanceKey(c, config, "foo-bar")

req, _, err := config.Build()
req, err := config.Build()
c.Assert(err, jc.ErrorIsNil)
c.Assert(req, gc.DeepEquals, transport.RefreshRequest{
Context: []transport.RefreshRequestContext{},
Expand All @@ -694,7 +694,7 @@ func (s *RefreshConfigSuite) TestDownloadOneFromRevisionByNameBuild(c *gc.C) {

config = DefineInstanceKey(c, config, "foo-bar")

req, _, err := config.Build()
req, err := config.Build()
c.Assert(err, jc.ErrorIsNil)
c.Assert(req, gc.DeepEquals, transport.RefreshRequest{
Context: []transport.RefreshRequestContext{},
Expand Down Expand Up @@ -764,7 +764,7 @@ func (s *RefreshConfigSuite) TestDownloadOneFromChannelByNameBuild(c *gc.C) {

config = DefineInstanceKey(c, config, "foo-bar")

req, _, err := config.Build()
req, err := config.Build()
c.Assert(err, jc.ErrorIsNil)
c.Assert(req, gc.DeepEquals, transport.RefreshRequest{
Context: []transport.RefreshRequestContext{},
Expand Down

0 comments on commit b683e0e

Please sign in to comment.