mirror of https://github.com/statping/statping
tests
parent
5f95b72744
commit
df2501d0c8
|
@ -291,7 +291,7 @@ func RunSelectAllNotifiers(t *testing.T) {
|
||||||
notifier.SetDB(core.DbSession)
|
notifier.SetDB(core.DbSession)
|
||||||
core.CoreApp.Notifications = notifier.Load()
|
core.CoreApp.Notifications = notifier.Load()
|
||||||
assert.Nil(t, err)
|
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) {
|
func RunUserSelectAll(t *testing.T) {
|
||||||
|
|
|
@ -48,7 +48,7 @@ func TestSelectAllServices(t *testing.T) {
|
||||||
func TestServiceDowntime(t *testing.T) {
|
func TestServiceDowntime(t *testing.T) {
|
||||||
service := SelectService(15)
|
service := SelectService(15)
|
||||||
downtime := service.Downtime()
|
downtime := service.Downtime()
|
||||||
assert.True(t, downtime.Minutes() > 0)
|
assert.True(t, downtime.Seconds() > 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSelectTCPService(t *testing.T) {
|
func TestSelectTCPService(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue