Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
test: add err handling in test
Browse files Browse the repository at this point in the history
Signed-off-by: hwdef <[email protected]>
  • Loading branch information
hwdef committed Sep 18, 2019
1 parent 63f099d commit 8a35330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cli_dfget_p2p_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ func (s *DFGetP2PTestSuite) TestDownloadFile(c *check.C) {

for _, ca := range cases {
if ca.createFile {
s.starter.WriteSupernodeFileServer(ca.filePath, ca.fileContent, os.ModePerm)
err := s.starter.WriteSupernodeFileServer(ca.filePath, ca.fileContent, os.ModePerm)
c.Assert(err, check.IsNil)
}
cmd, err := s.starter.DFGet(ca.timeout*time.Second,
"-u", fmt.Sprintf("http://127.0.0.1:%d/%s", environment.SupernodeDownloadPort, ca.filePath),
Expand Down

0 comments on commit 8a35330

Please sign in to comment.