mirror of https://github.com/statping/statping
delay tests
parent
d8169f6afc
commit
60b38f9b7e
|
@ -39,7 +39,7 @@ func TestStartServerCommand(t *testing.T) {
|
|||
os.Setenv("DB_CONN", "sqlite")
|
||||
cmd := helperCommand(nil, "")
|
||||
var got = make(chan string)
|
||||
commandAndSleep(cmd, time.Duration(240*time.Second), got)
|
||||
commandAndSleep(cmd, time.Duration(360*time.Second), got)
|
||||
os.Unsetenv("DB_CONN")
|
||||
gg, _ := <-got
|
||||
assert.Contains(t, gg, "DB_CONN environment variable was found")
|
||||
|
|
Loading…
Reference in New Issue