From b0bc78a71e7e48e1fe0aad11cc31fe466d813428 Mon Sep 17 00:00:00 2001 From: jp Date: Wed, 8 May 2024 14:05:13 +0200 Subject: [PATCH] moved assertion higher op in tests --- test/integration/capability/http/http_integration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/capability/http/http_integration_test.go b/test/integration/capability/http/http_integration_test.go index 651ab820..59312508 100644 --- a/test/integration/capability/http/http_integration_test.go +++ b/test/integration/capability/http/http_integration_test.go @@ -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) { @@ -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)) }