mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 02:08:40 +02:00
test: increase client interface up timout
This commit is contained in:
parent
07ab9c196d
commit
695148410f
@ -9,7 +9,6 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -71,7 +70,7 @@ func TestUp(t *testing.T) {
|
|||||||
"--config",
|
"--config",
|
||||||
confPath,
|
confPath,
|
||||||
"--setup-key",
|
"--setup-key",
|
||||||
strings.ToUpper("a2c8e62b-38f5-4553-b31e-dd66c696cebb"),
|
"A2C8E62B-38F5-4553-B31E-DD66C696CEBB",
|
||||||
"--management-url",
|
"--management-url",
|
||||||
mgmtURL.String(),
|
mgmtURL.String(),
|
||||||
})
|
})
|
||||||
@ -93,7 +92,7 @@ func TestUp(t *testing.T) {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
exists := false
|
exists := false
|
||||||
for start := time.Now(); time.Since(start) < 7*time.Second; {
|
for start := time.Now(); time.Since(start) < 15*time.Second; {
|
||||||
e, err := iface.Exists(iface.WgInterfaceDefault)
|
e, err := iface.Exists(iface.WgInterfaceDefault)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user