mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-29 03:23:56 +01:00
Fix test
This commit is contained in:
parent
1d8bd3f94a
commit
fc2e4ea134
@ -13,10 +13,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
connectionTimeout = 30 * time.Second
|
|
||||||
maxConcurrentServers = 7
|
maxConcurrentServers = 7
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
connectionTimeout = 30 * time.Second
|
||||||
|
)
|
||||||
|
|
||||||
type connResult struct {
|
type connResult struct {
|
||||||
RelayClient *Client
|
RelayClient *Client
|
||||||
Url string
|
Url string
|
||||||
|
@ -8,6 +8,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestServerPicker_UnavailableServers(t *testing.T) {
|
func TestServerPicker_UnavailableServers(t *testing.T) {
|
||||||
|
connectionTimeout = 5 * time.Second
|
||||||
|
|
||||||
sp := ServerPicker{
|
sp := ServerPicker{
|
||||||
TokenStore: nil,
|
TokenStore: nil,
|
||||||
PeerID: "test",
|
PeerID: "test",
|
||||||
|
Loading…
Reference in New Issue
Block a user