Skip to content

Commit

Permalink
moved assertion higher op in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbITCybErSeC committed May 8, 2024
1 parent 991e60f commit b0bc78a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/capability/http/http_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ func TestInsecureHTTPConnection(t *testing.T) {
}
httpRequest.SkipCertificateValidation(true)
response, err := httpRequest.Request(httpOptions)
assert.Equal(t, err, nil)
t.Log(string(response))
if len(response) == 0 {
t.Error("empty response")
}
t.Log(string(response))
assert.Equal(t, err, nil)
}

func TestInsecureHTTPConnectionWithFailure(t *testing.T) {
Expand All @@ -182,6 +182,6 @@ func TestInsecureHTTPConnectionWithFailure(t *testing.T) {
}

response, err := httpRequest.Request(httpOptions)
t.Log(string(response))
assert.NotEqual(t, err, nil)
t.Log(string(response))
}

0 comments on commit b0bc78a

Please sign in to comment.