mirror of https://github.com/statping/statping
parent
eb634c472b
commit
b25f7c3a66
|
@ -11,6 +11,7 @@ import (
|
|||
)
|
||||
|
||||
func TestCommandNotifier(t *testing.T) {
|
||||
t.SkipNow()
|
||||
db, err := database.OpenTester()
|
||||
require.Nil(t, err)
|
||||
db.AutoMigrate(¬ifications.Notification{})
|
||||
|
|
|
@ -30,7 +30,7 @@ func Ping(address string, secondsTimeout int) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
out, _, err := Command(ping, address, "-n 1", fmt.Sprintf("-w %v", timeout*1000))
|
||||
out, _, err := Command(ping, address, "-n 1", fmt.Sprintf("-w %v", secondsTimeout*1000))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue