From 19bb831fbfb4563af2a01167819e232b6d55cd3b Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Fri, 8 Jan 2021 17:43:45 -0500 Subject: [PATCH] Update test to prevent this from happening again --- storage/memory_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/memory_test.go b/storage/memory_test.go index 2f7ac157..1159f914 100644 --- a/storage/memory_test.go +++ b/storage/memory_test.go @@ -105,7 +105,7 @@ func TestStorage_InsertTwoResultsForSingleServiceIntoEmptyMemoryStore_ThenGetAll Duration: time.Second * 2, Errors: nil, ConditionResults: nil, - Success: true, + Success: false, Timestamp: time.Now(), CertificateExpiration: time.Second * 2, } @@ -132,7 +132,6 @@ func TestStorage_InsertTwoResultsForSingleServiceIntoEmptyMemoryStore_ThenGetAll for i, r := range serviceResults.Results { expectedResult := resultsToInsert[i] - if r.HTTPStatus != expectedResult.HTTPStatus { t.Errorf("Result at index %d should've had a HTTPStatus of %d, but was actually %d", i, expectedResult.HTTPStatus, r.HTTPStatus) }