Skip to content

Commit

Permalink
Merge pull request #2720 from howjmay/privtangle-concise
Browse files Browse the repository at this point in the history
refactor: Remove useless code
  • Loading branch information
jorgemmsilva authored Jul 17, 2023
2 parents 3ae2934 + ec47cef commit 9579c11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/testutil/privtangle/privtangle.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ func (pt *PrivTangle) generateSnapshot() {
}

func (pt *PrivTangle) startNode(i int, deleteExisting bool) {
env := []string{}
nodePath := filepath.Join(pt.BaseDir, fmt.Sprintf("node-%d", i))
nodePathDB := "db" // Relative from nodePath.
nodeP2PStore := "p2pStore" // Relative from nodePath.
Expand Down Expand Up @@ -189,7 +188,6 @@ func (pt *PrivTangle) startNode(i int, deleteExisting bool) {
util.TerminateCmdWhenTestStops(hornetCmd)

hornetCmd.Env = os.Environ()
hornetCmd.Env = append(hornetCmd.Env, env...)
hornetCmd.Dir = nodePath
pt.NodeCommands[i] = hornetCmd

Expand Down Expand Up @@ -276,7 +274,7 @@ func (pt *PrivTangle) Stop() {
panic(fmt.Errorf("failed while waiting for a HORNET node [%d]: %w", i, err))
}
if !c.ProcessState.Success() {
panic(fmt.Errorf("Hornet node [%d] failed: %s", i, c.ProcessState.String()))
panic(fmt.Errorf("hornet node [%d] failed: %s", i, c.ProcessState.String()))
}
}
pt.logf("Stopping... Done")
Expand Down

0 comments on commit 9579c11

Please sign in to comment.