Browse Source

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 <[email protected]>
Anton Tolchanov 2 years ago
parent
commit
cf8948da5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/routetable/routetable_linux_test.go

+ 1 - 1
net/routetable/routetable_linux_test.go

@@ -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)
 	}