1
0
Fork 0
mirror of https://github.com/TwiN/gatus.git synced 2024-12-15 17:51:09 +00:00

feat(config): Fix store_test after merge

Signed-off-by: Sergey Khokhlov <sergey.khokhlov@citi.com>
This commit is contained in:
Sergey Khokhlov 2023-08-11 16:08:35 +03:00
parent 04b33ec874
commit a49342cd39
No known key found for this signature in database
GPG key ID: BD98B652F4C50670
4 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@ clean:
rm $(BINARY)
test:
go test ./... -cover -race
go test ./... -cover
##########

View file

@ -2,7 +2,7 @@ endpoints:
- name: front-end
group: core
url: "https://twin.sh/health"
interval: 1s
interval: 5m
conditions:
- "[STATUS] == 200"
- "[BODY].status == UP"
@ -52,4 +52,4 @@ endpoints:
conditions:
- "[DOMAIN_EXPIRATION] > 720h"
storage:
maximum-number-of-results: 1000
maximum-number-of-results: 1000

View file

@ -157,7 +157,7 @@ func TestStore_GetEndpointStatusByKey(t *testing.T) {
t.Error("The result at index 0 should've been older than the result at index 1")
}
scenario.Store.Insert(&testEndpoint, &thirdResult)
endpointStatus, err = scenario.Store.GetEndpointStatusByKey(testEndpoint.Key(), paging.NewEndpointStatusParams().WithEvents(1, common.MaximumNumberOfEvents).WithResults(1, common.MaximumNumberOfResults))
endpointStatus, err = scenario.Store.GetEndpointStatusByKey(testEndpoint.Key(), paging.NewEndpointStatusParams().WithEvents(1, storage.DefaultMaximumNumberOfEvents).WithResults(1, storage.DefaultMaximumNumberOfResults))
if err != nil {
t.Fatal("shouldn't have returned an error, got", err.Error())
}

File diff suppressed because one or more lines are too long