From 573410afabd9d7df60f55e86ea75fd43b01b5f7a Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Fri, 2 Sep 2016 22:17:02 +0200 Subject: [PATCH] Fix archiver test --- src/restic/archiver/archiver_int_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/restic/archiver/archiver_int_test.go b/src/restic/archiver/archiver_int_test.go index 3b5309a20..c4014f5b0 100644 --- a/src/restic/archiver/archiver_int_test.go +++ b/src/restic/archiver/archiver_int_test.go @@ -2,10 +2,10 @@ package archiver import ( "os" - "restic" "testing" "restic/pipe" + "restic/walk" ) var treeJobs = []string{ @@ -83,12 +83,12 @@ func (j testPipeJob) Error() error { return j.err } func (j testPipeJob) Info() os.FileInfo { return j.fi } func (j testPipeJob) Result() chan<- pipe.Result { return j.res } -func testTreeWalker(done <-chan struct{}, out chan<- restic.WalkTreeJob) { +func testTreeWalker(done <-chan struct{}, out chan<- walk.TreeJob) { for _, e := range treeJobs { select { case <-done: return - case out <- restic.WalkTreeJob{Path: e}: + case out <- walk.TreeJob{Path: e}: } } @@ -110,7 +110,7 @@ func testPipeWalker(done <-chan struct{}, out chan<- pipe.Job) { func TestArchivePipe(t *testing.T) { done := make(chan struct{}) - treeCh := make(chan restic.WalkTreeJob) + treeCh := make(chan walk.TreeJob) pipeCh := make(chan pipe.Job) go testTreeWalker(done, treeCh)