convert path 2 filepath

This commit is contained in:
Joel Scoble 2014-11-06 10:01:56 -06:00 committed by spf13
parent 4f2dfe7015
commit 7fd348cf79

View file

@ -2,7 +2,6 @@ package source
import ( import (
"bytes" "bytes"
"path"
"path/filepath" "path/filepath"
"testing" "testing"
) )
@ -35,7 +34,7 @@ func TestAddFile(t *testing.T) {
p := test.filename p := test.filename
if !filepath.IsAbs(test.filename) { if !filepath.IsAbs(test.filename) {
p = path.Join(src.Base, test.filename) p = filepath.Join(src.Base, test.filename)
} }
if err := src.add(p, bytes.NewReader([]byte(test.content))); err != nil { if err := src.add(p, bytes.NewReader([]byte(test.content))); err != nil {