Skip to content

Commit

Permalink
o/h/ctlcmd: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mardy committed Jun 29, 2022
1 parent fc1f83d commit 7d308fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions overlord/hookstate/ctlcmd/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const (
var (
AttributesTask = attributesTask

KmodEnsureConnection = kmodEnsureConnection
KmodMatchConnection = kmodMatchConnection
KmodEnsureConnection = kmodEnsureConnection
KmodMatchConnection = kmodMatchConnection
)

type KmodCommand = kmodCommand
Expand Down
12 changes: 6 additions & 6 deletions overlord/hookstate/ctlcmd/kmod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ func (s *kmodSuite) TestInsertFailure(c *C) {

for _, td := range []struct {
ensureConnectionError error
loadModuleError error
expectedError string
loadModuleError error
expectedError string
}{
{
// error retrieving the snap connections
ensureConnectionError: errors.New("state error"),
expectedError: `cannot load module "moderr": state error`,
expectedError: `cannot load module "moderr": state error`,
},
{
// error calling modprobe
Expand Down Expand Up @@ -269,13 +269,13 @@ func (s *kmodSuite) TestRemoveFailure(c *C) {

for _, td := range []struct {
ensureConnectionError error
loadModuleError error
expectedError string
loadModuleError error
expectedError string
}{
{
// error retrieving the snap connections
ensureConnectionError: errors.New("state error"),
expectedError: `cannot unload module "moderr": state error`,
expectedError: `cannot unload module "moderr": state error`,
},
{
// error calling modprobe
Expand Down

0 comments on commit 7d308fb

Please sign in to comment.