client/allocwatcher: fix dropped test error (#6592)

This commit is contained in:
Lars Lehtonen
2019-10-31 05:29:25 -07:00
committed by Tim Gross
parent 9254b353f0
commit d0d18b2a85

View File

@@ -76,6 +76,10 @@ func TestPrevAlloc_StreamAllocDir_Ok(t *testing.T) {
tw := tar.NewWriter(buf)
walkFn := func(path string, fileInfo os.FileInfo, err error) error {
// filepath.Walk passes in an error
if err != nil {
return fmt.Errorf("error from filepath.Walk(): %s", err)
}
// Include the path of the file name relative to the alloc dir
// so that we can put the files in the right directories
link := ""