mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-04 15:35:18 +00:00
seek stdout and err to 0 if failed to launch blockchain
This commit is contained in:
parent
024706436b
commit
f26f321272
@ -128,6 +128,8 @@ class TestNode:
|
|||||||
poll_per_s = 4
|
poll_per_s = 4
|
||||||
for _ in range(poll_per_s * self.rpc_timeout):
|
for _ in range(poll_per_s * self.rpc_timeout):
|
||||||
if self.process.poll() is not None:
|
if self.process.poll() is not None:
|
||||||
|
self.stderr.seek(0)
|
||||||
|
self.stdout.seek(0)
|
||||||
raise FailedToStartError(
|
raise FailedToStartError(
|
||||||
self._node_msg(
|
self._node_msg(
|
||||||
"exited with status {} during initialization \n\nstderr: {}\n\nstdout: {}\n\n".format(
|
"exited with status {} during initialization \n\nstderr: {}\n\nstdout: {}\n\n".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user