Skip to content

Commit

Permalink
Remove uneeded check
Browse files Browse the repository at this point in the history
Looks both overly defensive, and enables a silent failure
  • Loading branch information
AndrewSisley committed Dec 21, 2022
1 parent 6126bcd commit b9727e5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/integration/net/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,7 @@ func executeTestCase(t *testing.T, test P2PTestCase) {
}
}

// update and sync peers
for n, updateMap := range test.Updates {
if n >= len(nodes) {
log.Info(ctx, "cannot update a node that hasn't been started. Skipping to next node")
continue
}

for d, updates := range updateMap {
for _, update := range updates {
log.Info(ctx, fmt.Sprintf("Updating node %d with update %d", n, d))
Expand Down

0 comments on commit b9727e5

Please sign in to comment.