mirror of https://github.com/statping/statping
test fix
parent
d380bc7f8b
commit
d8169f6afc
|
@ -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(180*time.Second), got)
|
||||
commandAndSleep(cmd, time.Duration(240*time.Second), got)
|
||||
os.Unsetenv("DB_CONN")
|
||||
gg, _ := <-got
|
||||
assert.Contains(t, gg, "DB_CONN environment variable was found")
|
||||
|
|
Loading…
Reference in New Issue