Skip to content

Commit

Permalink
Merge pull request #23 from fedepaol/fixvolkswagen
Browse files Browse the repository at this point in the history
E2E: return error when the condition is not valid
  • Loading branch information
fedepaol authored Jul 17, 2023
2 parents 333684a + e083430 commit 0837ace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2etests/tests/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ValidatePrefixesForNeighbor(neigh frrcontainer.FRR, nodes []v1.Node, prefix
found, err := routes.CheckNeighborHasPrefix(neigh, prefix, nodes)
framework.ExpectNoError(err)
if !found {
fmt.Errorf("Neigh %s does not have prefix %s", neigh.Name, prefix)
return fmt.Errorf("Neigh %s does not have prefix %s", neigh.Name, prefix)
}
}
return nil
Expand All @@ -63,7 +63,7 @@ func ValidateNeighborNoPrefixes(neigh frrcontainer.FRR, nodes []v1.Node, prefixe
found, err := routes.CheckNeighborHasPrefix(neigh, prefix, nodes)
framework.ExpectNoError(err)
if found {
fmt.Errorf("Neigh %s has prefix %s", neigh.Name, prefix)
return fmt.Errorf("Neigh %s has prefix %s", neigh.Name, prefix)
}
}
return nil
Expand Down

0 comments on commit 0837ace

Please sign in to comment.