Skip to content

Commit

Permalink
Fix (false positive) test failure caused by the prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
benjojo committed Mar 1, 2023
1 parent 62f5952 commit 5a37822
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/stayrtr/stayrtr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ func TestProcessData(t *testing.T) {
)
got, _, _, count, v4count, v6count := processData(stuff, nil, nil)
want := []rtr.VRP{
{
Prefix: mustParseIPNet("192.168.0.0/24"),
MaxLen: 24,
ASN: 123,
},
{
Prefix: mustParseIPNet("2001:db8::/32"),
MaxLen: 33,
Expand All @@ -117,6 +112,11 @@ func TestProcessData(t *testing.T) {
MaxLen: 25,
ASN: 123,
},
{
Prefix: mustParseIPNet("192.168.0.0/24"),
MaxLen: 24,
ASN: 123,
},
}
if count != 3 || v4count != 2 || v6count != 1 {
t.Errorf("Wanted count = 3, v4count = 2, v6count = 1, but got %d, %d, %d", count, v4count, v6count)
Expand Down

0 comments on commit 5a37822

Please sign in to comment.