diff --git a/cmd/main_test.go b/cmd/main_test.go index 6cd36bef..b334fc26 100644 --- a/cmd/main_test.go +++ b/cmd/main_test.go @@ -291,7 +291,7 @@ func RunSelectAllNotifiers(t *testing.T) { notifier.SetDB(core.DbSession) core.CoreApp.Notifications = notifier.Load() assert.Nil(t, err) - assert.Equal(t, 6, len(core.CoreApp.Notifications)) + assert.Equal(t, 7, len(core.CoreApp.Notifications)) } func RunUserSelectAll(t *testing.T) { diff --git a/core/services_test.go b/core/services_test.go index 7cbde32f..982b3624 100644 --- a/core/services_test.go +++ b/core/services_test.go @@ -48,7 +48,7 @@ func TestSelectAllServices(t *testing.T) { func TestServiceDowntime(t *testing.T) { service := SelectService(15) downtime := service.Downtime() - assert.True(t, downtime.Minutes() > 0) + assert.True(t, downtime.Seconds() > 0) } func TestSelectTCPService(t *testing.T) {