Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9299)

Unified Diff: client/archiver/directory_test.go

Issue 2981243002: isolate: (refactor) extract blacklisting into common package (Closed)
Patch Set: address review comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/archiver/directory.go ('k') | client/cmd/isolate/common.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/archiver/directory_test.go
diff --git a/client/archiver/directory_test.go b/client/archiver/directory_test.go
index b509dfa880115c925ee0172ab71f1e761f9740c7..f810df7d008ec9dfcfb5820eb6b718eb42043bd4 100644
--- a/client/archiver/directory_test.go
+++ b/client/archiver/directory_test.go
@@ -16,12 +16,10 @@ package archiver
import (
"encoding/json"
- "errors"
"io/ioutil"
"net/http/httptest"
"os"
"path/filepath"
- "sync"
"testing"
"golang.org/x/net/context"
@@ -35,25 +33,6 @@ import (
. "github.com/smartystreets/goconvey/convey"
)
-func TestWalkBadRegexp(t *testing.T) {
- Convey(`A bad regexp should fail when walking a directory.`, t, func() {
- ch := make(chan *walkItem)
- var wg sync.WaitGroup
- wg.Add(1)
- go func() {
- defer wg.Done()
- defer close(ch)
- walk("inexistent", []string{"a["}, ch)
- }()
- item := <-ch
- So(item, ShouldResemble, &walkItem{err: errors.New("bad blacklist pattern \"a[\"")})
- item, ok := <-ch
- So(item, ShouldBeNil)
- So(ok, ShouldBeFalse)
- wg.Wait()
- })
-}
-
func TestPushDirectory(t *testing.T) {
// Uploads a real directory. 2 times the same file.
t.Parallel()
« no previous file with comments | « client/archiver/directory.go ('k') | client/cmd/isolate/common.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698