Skip to content

Commit

Permalink
cmd/snap-bootstrap: fix variable naming in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sespiros committed Jan 16, 2025
1 parent f96ae03 commit aea7473
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/snap-bootstrap/initramfs_systemd_mount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,16 +671,16 @@ Wants=%[1]s
}
}

type dummyOpts struct{}
type testOpts struct{}

func (d dummyOpts) AppendOptions(strings []string) ([]string, error) {
return []string{"dummy options"}, nil
func (d testOpts) AppendOptions(strings []string) ([]string, error) {
return []string{"test options"}, nil
}

func (s *doSystemdMountSuite) TestDoSystemdMountWrongFsOpts(c *C) {

opts := &main.SystemdMountOptions{
FsOpts: dummyOpts{},
FsOpts: testOpts{},
}

err := main.DoSystemdMount("what", "where", opts)
Expand Down

0 comments on commit aea7473

Please sign in to comment.