Skip to content

Commit ea8111c

Browse files
author
Pedro De Brito
committed
Fix assert order in TestGetClient
1 parent 999a680 commit ea8111c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ func TestGetClient(t *testing.T) {
4545

4646
client := GetClient()
4747
res, err := client.Get(ts.URL)
48+
assert.NoError(t, err)
4849
assert.Equal(t, "/////", res.Header.Get("Location"))
4950
assert.NoError(t, res.Body.Close())
50-
assert.NoError(t, err)
5151
})
5252
}
5353
func TestGetCachedClient(t *testing.T) {

0 commit comments

Comments
 (0)