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