Skip to content

Commit

Permalink
defer teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
edlitmus committed Aug 27, 2018
1 parent edd6333 commit 7ee5c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const pgpHeader = "-----BEGIN PGP MESSAGE-----"

func TestMain(m *testing.M) {
initGPGDir()
defer teardownGPGDir()
retCode := m.Run()
teardownGPGDir()
os.Exit(retCode)
}

Expand Down

0 comments on commit 7ee5c09

Please sign in to comment.