Skip to content

Commit

Permalink
Merge pull request #2926 from ipfs/feature/fix-test-parse-symlink-#2925
Browse files Browse the repository at this point in the history
Resolve symlinks of testfiles
  • Loading branch information
whyrusleeping authored Jul 1, 2016
2 parents c4e8210 + b68e37f commit f3d5fe6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions commands/cli/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strings"
"testing"
Expand Down Expand Up @@ -287,6 +288,15 @@ func TestArgumentParsing(t *testing.T) {
if err != nil {
t.Fatal(err)
}
fn, err := filepath.EvalSymlinks(f.Name())
if err != nil {
t.Fatal(err)
}
f.Close()
f, err = os.Create(fn)
if err != nil {
t.Fatal(err)
}

return f
}
Expand Down

0 comments on commit f3d5fe6

Please sign in to comment.