Skip to content

Commit

Permalink
Fix chron pull test to use the artifact string
Browse files Browse the repository at this point in the history
  • Loading branch information
tdmanv committed Aug 22, 2019
1 parent b88d1b9 commit 8d13ff3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/chronicle/chronicle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func (s *ChronicleSuite) TestPushPull(c *C) {
c.Assert(err, IsNil)

a := filepath.Join(c.MkDir(), "artifact")
err = ioutil.WriteFile(a, []byte(rand.String(10)), os.ModePerm)
ap := rand.String(10)
err = ioutil.WriteFile(a, []byte(ap), os.ModePerm)
c.Assert(err, IsNil)
p := PushParams{
ProfilePath: pp,
Expand All @@ -60,7 +61,8 @@ func (s *ChronicleSuite) TestPushPull(c *C) {

// Pull and check that we still get i
buf := bytes.NewBuffer(nil)
err = Pull(ctx, buf, s.profile, p.ArtifactFile)
c.Log("File: ", p.ArtifactFile)
err = Pull(ctx, buf, s.profile, ap)
c.Assert(err, IsNil)
str, err := ioutil.ReadAll(buf)
c.Assert(err, IsNil)
Expand Down

0 comments on commit 8d13ff3

Please sign in to comment.