convert path 2 filepath
authorJoel Scoble <joel.scoble@outlook.com>
Thu, 6 Nov 2014 16:01:56 +0000 (10:01 -0600)
committerspf13 <steve.francia@gmail.com>
Fri, 14 Nov 2014 03:37:14 +0000 (22:37 -0500)
source/filesystem_test.go

index d2639310e8d99c055c0d5ef045c792b4a15ed05f..95526415a785c1413b0e7aa321a58f8d86dbd4fa 100644 (file)
@@ -2,7 +2,6 @@ package source
 
 import (
        "bytes"
-       "path"
        "path/filepath"
        "testing"
 )
@@ -35,7 +34,7 @@ func TestAddFile(t *testing.T) {
 
                        p := 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 {