From 7e54c26cb8020e30774d1565326497ffa69123fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Mon, 7 Oct 2019 07:34:57 +0200 Subject: [PATCH] Don't test for false boolean value --- internal/http/request_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/http/request_test.go b/internal/http/request_test.go index cb5f458..7a17411 100644 --- a/internal/http/request_test.go +++ b/internal/http/request_test.go @@ -34,7 +34,7 @@ func TestRequestGivenMethod(t *testing.T) { t.Errorf("Unexpected error on request") } - if gock.IsDone() == false { + if !gock.IsDone() { t.Errorf("Expected request not performed") } } @@ -49,7 +49,7 @@ func TestReturnHTTPErrorAsIs(t *testing.T) { t.Errorf("Returned error is not the expected error: '%v'", err) } - if gock.IsDone() == false { + if !gock.IsDone() { t.Errorf("Expected request not performed") } } @@ -63,7 +63,7 @@ func TestReturnHTTPReasonAsErrorWhenUnsuccessful(t *testing.T) { t.Errorf("Reason should be returned as an error") } - if gock.IsDone() == false { + if !gock.IsDone() { t.Errorf("Expected request not performed") } } @@ -86,7 +86,7 @@ func TestCopyResponseBodyToWriter(t *testing.T) { t.Errorf("Unexpected output %v", res) } - if gock.IsDone() == false { + if !gock.IsDone() { t.Error("No expected endpoint called") } } @@ -112,7 +112,7 @@ func TestWriteToDevNullWhenNoWriter(t *testing.T) { t.Errorf("Unexpected output %v", res) } - if gock.IsDone() == false { + if !gock.IsDone() { t.Error("No expected endpoint called") } } @@ -129,7 +129,7 @@ func TestSendContentType(t *testing.T) { t.Errorf("Unexpected error '%v'", err.Error()) } - if gock.IsDone() == false { + if !gock.IsDone() { t.Error("No expected endpoint called") } }