Skip to content

Commit

Permalink
Adjust processData() test after removing the count return value
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeker committed Feb 29, 2024
1 parent ae6c463 commit 48740ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/stayrtr/stayrtr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestProcessData(t *testing.T) {
Expires: &ExpiredTime,
},
)
got, _, _, count, v4count, v6count := processData(stuff, nil, nil)
got, _, _, v4count, v6count := processData(stuff, nil, nil)
want := []rtr.VRP{
{
Prefix: netip.MustParsePrefix("2001:db8::/32"),
Expand All @@ -118,8 +118,8 @@ func TestProcessData(t *testing.T) {
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)
if v4count != 2 || v6count != 1 {
t.Errorf("Wanted v4count = 2, v6count = 1, but got %d, %d", v4count, v6count)
}

opts := []cmp.Option{
Expand Down

0 comments on commit 48740ff

Please sign in to comment.