Skip to content

Commit

Permalink
o/snapstate: remove unused test type (#14207)
Browse files Browse the repository at this point in the history
golangci-lint is failing on master due to a test type that become unused
in the recent snapstate refactor

Signed-off-by: Miguel Pires <[email protected]>
  • Loading branch information
MiguelPires authored Jul 18, 2024
1 parent 954fcb5 commit af448ef
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions overlord/snapstate/snapstate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7930,30 +7930,6 @@ func (s *snapmgrTestSuite) TestSnapdRefreshTasks(c *C) {
c.Assert(snapst.Current, Equals, snap.R(11))
}

type installTestType struct {
t snap.Type
}

func (t *installTestType) InstanceName() string {
panic("not expected")
}

func (t *installTestType) Type() snap.Type {
return t.t
}

func (t *installTestType) SnapBase() string {
panic("not expected")
}

func (t *installTestType) DownloadSize() int64 {
panic("not expected")
}

func (t *installTestType) Prereq(st *state.State, prqt snapstate.PrereqTracker) []string {
panic("not expected")
}

func (s *snapmgrTestSuite) TestInstalledSnaps(c *C) {
st := state.New(nil)
st.Lock()
Expand Down

0 comments on commit af448ef

Please sign in to comment.