Skip to content

tests/utils: refactor nodes starting and stopping and detect runtime errors #2391

@qdm12

Description

@qdm12

Task summary

Right now we create nodes as subprocesses, write the log output to files and kill them using the OS kill process.
These functions should be changed such that:

  • they are context.Context based (so each node can be stopped gracefully by canceling the context)
  • they return a runtime error channel (so we can detect runtime failures)

The following functions have to be modified:

  • InitGossamer
  • startGossamer
  • RunGossamer

These may be moved as methods on the Node type, which is more intuitive to use.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions