client/init: fill procfile and tsuru.yaml files
@@ -13,12 +13,12 @@ func (s *S) TestInitCreateInitFiles(c *check.C) {
wd, err := os.Getwd()
c.Assert(err, check.IsNil)
defer os.Chdir(wd)
- tmpDir := os.TempDir()
- err = os.Chdir(tmpDir)
+ dir := "testdata/deploy3/dir"
+ err = os.Chdir(filepath.Join(wd, dir))
c.Assert(err, check.IsNil)
err = createInitFiles()
c.Assert(err, check.IsNil)
- tpath, err := os.Open(tmpDir)
+ tpath, err := os.Open(filepath.Join(wd, dir))
c.Assert(err, check.IsNil)
defer tpath.Close()
content, err := tpath.Readdir(0)
