Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed Nov 5, 2024
1 parent 0dcb5fe commit f7d23ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ephem/swap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ func TestReadSwapFile(t *testing.T) {
as.NoError(err)
as.Empty(swaps)

swaps, err = ReadSwapFile(strings.NewReader(corrupt))
_, err = ReadSwapFile(strings.NewReader(corrupt))
as.Errorf(err, "malformed entry in swaps file: '%s'", "foo bar baz")

swaps, err = ReadSwapFile(strings.NewReader(badPartition))
_, err = ReadSwapFile(strings.NewReader(badPartition))
as.Errorf(err, "malformed entry in swaps file: '%s'", `/var/lib/swap-1 foo 1048576 123 -3`)

swaps, err = ReadSwapFile(strings.NewReader(sample))
Expand Down

0 comments on commit f7d23ee

Please sign in to comment.