pull/429/head
Hunter Long 2020-03-15 14:36:55 -07:00
parent ef42b386cd
commit 70276d490d
3 changed files with 3 additions and 11 deletions

View File

@ -163,12 +163,6 @@ func TestUpdateCLI(t *testing.T) {
assert.Contains(t, gg, "version")
}
func TestTestPackageCLI(t *testing.T) {
t.SkipNow()
run := catchCLI([]string{"test", "plugins"})
assert.EqualError(t, run, "end")
}
func TestHelpCLI(t *testing.T) {
run := catchCLI([]string{"help"})
assert.EqualError(t, run, "end")

View File

@ -3,13 +3,11 @@ package handlers
import (
"github.com/statping/statping/notifiers"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)
func TestAttachment(t *testing.T) {
err := notifiers.Migrate()
require.Nil(t, err)
notifiers.InitNotifiers()
}
func TestApiNotifiersRoutes(t *testing.T) {

View File

@ -166,7 +166,7 @@ func TestService_AvgTime(t *testing.T) {
item, err := Find(1)
require.Nil(t, err)
assert.Equal(t, "", item.AvgTime())
assert.Equal(t, int64(123456), item.AvgTime())
}
func TestService_HitsSince(t *testing.T) {
@ -192,7 +192,7 @@ func TestService_OnlineDaysPercent(t *testing.T) {
amount := item.OnlineDaysPercent(1)
assert.Equal(t, "", amount)
assert.Equal(t, float32(33.33), amount)
}
func TestService_Downtime(t *testing.T) {