Skip to content

Commit

Permalink
Make test data in tmp dir
Browse files Browse the repository at this point in the history
This broke for me on a system where the build dir wasn't writable
  • Loading branch information
dustin committed Jan 13, 2015
1 parent e5a223a commit cca345e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion follow_test.go
Expand Up @@ -39,7 +39,7 @@ func read(t *testing.T, fn string, ch chan<- int) {
}

func TestFileTail(t *testing.T) {
fn := ",thefile"
fn := os.TempDir() + "/,thefile"
defer os.Remove(fn)

f, err := os.OpenFile(fn, os.O_CREATE|os.O_EXCL|os.O_WRONLY, 0666)
Expand Down

0 comments on commit cca345e

Please sign in to comment.