Skip to content

Commit

Permalink
net/routetable: increase route limit used by the test
Browse files Browse the repository at this point in the history
I was running all tests while preparing a recent stable release, and
this was failing because my computer is connected to a fairly large
tailnet.

```
--- FAIL: TestGetRouteTable (0.01s)
    routetable_linux_test.go:32: expected at least one default route;
    ...
```

```
$ ip route show table 52  | wc -l
1051
```

Updates #cleanup

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
  • Loading branch information
knyar committed Mar 14, 2024
1 parent decd989 commit cf8948d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/routetable/routetable_linux_test.go
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestGetRouteTable(t *testing.T) {
routes, err := Get(1000)
routes, err := Get(512000) // arbitrarily large
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit cf8948d

Please sign in to comment.