mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
Update test to prevent this from happening again
This commit is contained in:
parent
bca38bd372
commit
19bb831fbf
@ -105,7 +105,7 @@ func TestStorage_InsertTwoResultsForSingleServiceIntoEmptyMemoryStore_ThenGetAll
|
|||||||
Duration: time.Second * 2,
|
Duration: time.Second * 2,
|
||||||
Errors: nil,
|
Errors: nil,
|
||||||
ConditionResults: nil,
|
ConditionResults: nil,
|
||||||
Success: true,
|
Success: false,
|
||||||
Timestamp: time.Now(),
|
Timestamp: time.Now(),
|
||||||
CertificateExpiration: time.Second * 2,
|
CertificateExpiration: time.Second * 2,
|
||||||
}
|
}
|
||||||
@ -132,7 +132,6 @@ func TestStorage_InsertTwoResultsForSingleServiceIntoEmptyMemoryStore_ThenGetAll
|
|||||||
|
|
||||||
for i, r := range serviceResults.Results {
|
for i, r := range serviceResults.Results {
|
||||||
expectedResult := resultsToInsert[i]
|
expectedResult := resultsToInsert[i]
|
||||||
|
|
||||||
if r.HTTPStatus != expectedResult.HTTPStatus {
|
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)
|
t.Errorf("Result at index %d should've had a HTTPStatus of %d, but was actually %d", i, expectedResult.HTTPStatus, r.HTTPStatus)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user