mirror of
https://github.com/tailscale/tailscale.git
synced 2025-11-29 14:31:40 +01:00
net/routetable: increase route limit used by the test
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>
This commit is contained in:
parent
decd9893e4
commit
cf8948da5f
@ -14,7 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestGetRouteTable(t *testing.T) {
|
func TestGetRouteTable(t *testing.T) {
|
||||||
routes, err := Get(1000)
|
routes, err := Get(512000) // arbitrarily large
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user