Skip to content

Commit

Permalink
added assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbITCybErSeC committed May 8, 2024
1 parent d064c42 commit 3ec3a7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unittest/utils/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func TestInsecureHTTPConnection(t *testing.T) {
t.Error("empty response")
}
t.Log(string(response))
assert.Equal(t, err, nil)
}

func TestInsecureHTTPConnectionWithFailure(t *testing.T) {
Expand All @@ -87,6 +88,7 @@ func TestInsecureHTTPConnectionWithFailure(t *testing.T) {
if err == nil {
t.Error("test should have failed as insecure is not allowed")
}
assert.NotEqual(t, err, nil)
}

func TestHttpGetConnection(t *testing.T) {
Expand Down

0 comments on commit 3ec3a7b

Please sign in to comment.