Skip to content

Commit 02ea031

Browse files
authored
Bugfix for broken import (#6816)
1 parent 287c473 commit 02ea031

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

security/advancedtls/crl_provider_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"io"
2525
"os"
2626
"path/filepath"
27+
"strings"
2728
"testing"
2829
"time"
2930

@@ -144,6 +145,9 @@ func (s) TestFileWatcherCRLProvider(t *testing.T) {
144145
const nonCRLFilesUnderCRLDirectory = 15
145146
nonCRLFilesSet := make(map[string]struct{})
146147
customCallback := func(err error) {
148+
if strings.Contains(err.Error(), "BUILD") {
149+
return
150+
}
147151
nonCRLFilesSet[err.Error()] = struct{}{}
148152
}
149153
p, err := NewFileWatcherCRLProvider(FileWatcherOptions{
@@ -311,7 +315,7 @@ func copyFiles(sourcePath string, targetPath string, fileNames []string, t *test
311315
t.Fatalf("Can't read dir %v: %v", targetPath, err)
312316
}
313317
for _, name := range names {
314-
err = os.RemoveAll(filepath.Join(testdata.Path(targetPath), name))
318+
err = os.RemoveAll(filepath.Join(targetPath, name))
315319
if err != nil {
316320
t.Fatalf("Can't remove file %v: %v", name, err)
317321
}

0 commit comments

Comments
 (0)