Skip to content

Commit

Permalink
efivario/tests: don't defer closing the fixture file
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5a17ed committed Oct 22, 2022
1 parent 57b3319 commit 468cdb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efi/efivario/fscontext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (s *FsContextTestSuite) TestDelete() {
// given that ...
f, err := s.context.fs.Create("TestVar-3CD99F3F-4B2B-43EB-AC29-F0890A4772B7")
require.NoError(s.T(), err)
defer func() { require.NoError(s.T(), f.Close()) }()
require.NoError(s.T(), f.Close())

// when ...
err = s.context.Delete("TestVar", testGuid)
Expand Down

0 comments on commit 468cdb3

Please sign in to comment.