Skip to content

Commit

Permalink
Added missing error handling in test (#355)
Browse files Browse the repository at this point in the history
err was ineffectually assigned. Added missing error check.
  • Loading branch information
muesli authored and Andrea Nodari committed Jul 21, 2019
1 parent 0001ed9 commit c98d3eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ghttp/test_server_test.go
Expand Up @@ -1072,6 +1072,7 @@ var _ = Describe("TestServer", func() {

var received protobuf.SimpleMessage
body, err := ioutil.ReadAll(resp.Body)
Expect(err).ShouldNot(HaveOccurred())
err = proto.Unmarshal(body, &received)
Expect(err).ShouldNot(HaveOccurred())
})
Expand Down

0 comments on commit c98d3eb

Please sign in to comment.