Skip to content

Commit

Permalink
Bugfix for broken import
Browse files Browse the repository at this point in the history
  • Loading branch information
erm-g committed Nov 22, 2023
1 parent 287c473 commit 2daac77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion security/advancedtls/crl_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"io"
"os"
"path/filepath"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -144,6 +145,9 @@ func (s) TestFileWatcherCRLProvider(t *testing.T) {
const nonCRLFilesUnderCRLDirectory = 15
nonCRLFilesSet := make(map[string]struct{})
customCallback := func(err error) {
if strings.Contains(err.Error(), "BUILD") {
return
}
nonCRLFilesSet[err.Error()] = struct{}{}
}
p, err := NewFileWatcherCRLProvider(FileWatcherOptions{
Expand Down Expand Up @@ -311,7 +315,7 @@ func copyFiles(sourcePath string, targetPath string, fileNames []string, t *test
t.Fatalf("Can't read dir %v: %v", targetPath, err)
}
for _, name := range names {
err = os.RemoveAll(filepath.Join(testdata.Path(targetPath), name))
err = os.RemoveAll(filepath.Join(targetPath, name))
if err != nil {
t.Fatalf("Can't remove file %v: %v", name, err)
}
Expand Down

0 comments on commit 2daac77

Please sign in to comment.