File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ func New(opts ...Option) *Node {
2525 }
2626}
2727
28- // Run runs the anvil node
29- // @TODO: should return available accounts on startup
30- func (n * Node ) Run () error {
28+ // Start starts the anvil node
29+ // @TODO: should return available accounts on startup or store them
30+ func (n * Node ) Start () error {
3131 defer n .running .Store (false )
3232
3333 if n .running .Load () {
@@ -36,12 +36,7 @@ func (n *Node) Run() error {
3636
3737 n .running .Store (true )
3838
39- err := n .cmd .Run ()
40- if err != nil {
41- return err
42- }
43-
44- return n .cmd .Wait ()
39+ return n .cmd .Start ()
4540}
4641
4742// Stop stops the anvil node
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ func TestClient(t *testing.T) {
2121
2222 defer cli .Stop ()
2323
24- go cli .Run ()
24+ go cli .Start ()
2525
2626 time .Sleep (1 * time .Second )
2727
You can’t perform that action at this time.
0 commit comments