Skip to content

Commit

Permalink
add defered closes
Browse files Browse the repository at this point in the history
  • Loading branch information
gtcooke94 committed Jun 6, 2024
1 parent d597673 commit fa097f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion security/advancedtls/crl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ func TestRevokedCert(t *testing.T) {
if err != nil {
t.Fatalf("NewFileWatcherCRLProvider: err = %v", err)
}
defer directoryCRLProvider.Close()

var revocationTests = []struct {
desc string
Expand Down Expand Up @@ -565,8 +566,8 @@ func TestVerifyConnection(t *testing.T) {
provider, err := NewFileWatcherCRLProvider(FileWatcherOptions{CRLDirectory: dir})
if err != nil {
t.Errorf("NewFileWatcherCRLProvider: err = %v", err)

}
defer provider.Close()
cliCfg := tls.Config{
RootCAs: cp,
VerifyConnection: func(cs tls.ConnectionState) error {
Expand Down

0 comments on commit fa097f9

Please sign in to comment.