tests fixed

pull/156/head
Hunter Long 2019-02-20 10:49:04 -08:00
parent f2dac7bcc8
commit 8872161764
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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,