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:
parent
04b33ec874
commit
a49342cd39
4 changed files with 5 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -13,7 +13,7 @@ clean:
|
|||
rm $(BINARY)
|
||||
|
||||
test:
|
||||
go test ./... -cover -race
|
||||
go test ./... -cover
|
||||
|
||||
|
||||
##########
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue