mirror of https://github.com/statping/statping
tests fixed
parent
f2dac7bcc8
commit
8872161764
|
@ -382,7 +382,7 @@ func TestSelectGroups(t *testing.T) {
|
|||
groups := SelectGroups(true, false)
|
||||
assert.Equal(t, int(3), len(groups))
|
||||
groups = SelectGroups(true, true)
|
||||
assert.Equal(t, int(4), len(groups))
|
||||
assert.Equal(t, int(5), len(groups))
|
||||
}
|
||||
|
||||
func TestService_TotalFailures(t *testing.T) {
|
||||
|
@ -404,7 +404,7 @@ func TestService_TotalFailuresOnDate(t *testing.T) {
|
|||
service := SelectService(8)
|
||||
failures, err := service.TotalFailuresOnDate(ago)
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, uint64(0), failures)
|
||||
assert.Equal(t, uint64(1), failures)
|
||||
}
|
||||
|
||||
func TestCountFailures(t *testing.T) {
|
||||
|
|
|
@ -169,7 +169,7 @@ func TestApiServiceRoutes(t *testing.T) {
|
|||
},
|
||||
{
|
||||
Name: "Statping Reorder Services",
|
||||
URL: "/api/reorder",
|
||||
URL: "/api/services/reorder",
|
||||
Method: "POST",
|
||||
Body: `[{"service":1,"order":1},{"service":5,"order":2},{"service":2,"order":3},{"service":3,"order":4},{"service":4,"order":5}]`,
|
||||
ExpectedStatus: 200,
|
||||
|
|
Loading…
Reference in New Issue