Rename test-data to testdata, go will ignore it automatically

master
Harshavardhana 10 years ago
parent c081b7c011
commit a18bfa2fda
  1. 4
      pkg/utils/split/split_test.go
  2. 0
      pkg/utils/split/testdata/TESTFILE

@ -53,9 +53,9 @@ func (s *MySuite) TestSplitStream(c *C) {
} }
func (s *MySuite) TestFileSplitJoin(c *C) { func (s *MySuite) TestFileSplitJoin(c *C) {
err := split.FileWithPrefix("test-data/TESTFILE", 1024, "TESTPREFIX") err := split.FileWithPrefix("testdata/TESTFILE", 1024, "TESTPREFIX")
c.Assert(err, IsNil) c.Assert(err, IsNil)
err = split.FileWithPrefix("test-data/TESTFILE", 1024, "") err = split.FileWithPrefix("testdata/TESTFILE", 1024, "")
c.Assert(err, Not(IsNil)) c.Assert(err, Not(IsNil))
devnull, err := os.OpenFile(os.DevNull, 2, os.ModeAppend) devnull, err := os.OpenFile(os.DevNull, 2, os.ModeAppend)

Loading…
Cancel
Save