Skip to content

Commit

Permalink
Add missing error check in post request test
Browse files Browse the repository at this point in the history
  • Loading branch information
zombiezen committed Nov 23, 2020
1 parent b3a56e0 commit 58da2dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ghdevice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ func TestPost(t *testing.T) {
t.Errorf("User-Agent = %q; want %q", got, userAgent)
}
got, err := url.ParseQuery(string(body))
if err != nil {
t.Error("Parse request body:", err)
}
if diff := cmp.Diff(want, got); diff != "" {
t.Errorf("body values (-want +got):\n%s", diff)
}
Expand Down

0 comments on commit 58da2dc

Please sign in to comment.