Skip to content

Commit

Permalink
fix startNodes
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy committed Jul 26, 2023
1 parent 3ba638c commit 58cdb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netdeploy/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (n Network) GetPeerAddresses(binDir string) []string {
}

func (n Network) startNodes(binDir string, relayNameToAddress map[string]string, redirectOutput bool) error {
allRelaysAddresses := strings.Join(maps.Keys(relayNameToAddress), ";")
allRelaysAddresses := strings.Join(maps.Values(relayNameToAddress), ";")

Check warning on line 344 in netdeploy/network.go

View check run for this annotation

Codecov / codecov/patch

netdeploy/network.go#L343-L344

Added lines #L343 - L344 were not covered by tests

nodeConfigToEntry := make(map[string]remote.NodeConfigGoal, len(n.cfg.Template.Nodes))
for _, n := range n.cfg.Template.Nodes {
Expand Down
2 changes: 1 addition & 1 deletion netdeploy/networkTemplates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestLoadMissingConfig(t *testing.T) {
a := require.New(t)

templateDir, err := filepath.Abs("../test/testdata/nettemplates")
a.Error(err)
a.NoError(err)
template, err := loadTemplate(filepath.Join(templateDir, "<invalidname>.json"))
a.Error(err)
a.Equal(template.Genesis.NetworkName, "")
Expand Down

0 comments on commit 58cdb9e

Please sign in to comment.