increase timeout for server and add output to console

This commit is contained in:
Fabian Weber 2018-03-15 13:41:21 +01:00 committed by Ethan Buchman
parent 7246a80e38
commit 07a1f4dc15
1 changed files with 4 additions and 1 deletions

View File

@ -227,9 +227,12 @@ func StartNodeServerForTest(t *testing.T, home string) *exec.Cmd {
err := cmd.Start()
require.Nil(t, err)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
// FIXME: if there is a nondeterministic node start failure,
// we should probably make this read the logs to wait for RPC
time.Sleep(time.Second)
time.Sleep(time.Second * 2)
return cmd
}