Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit 8a35330

Browse filesBrowse files
committed
test: add err handling in test
Signed-off-by: hwdef <hwdef97@gmail.com>
1 parent 63f099d commit 8a35330
Copy full SHA for 8a35330

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎test/cli_dfget_p2p_test.go‎

Copy file name to clipboardExpand all lines: test/cli_dfget_p2p_test.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ func (s *DFGetP2PTestSuite) TestDownloadFile(c *check.C) {
8888

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.