This commit is contained in:
Zoltán Papp 2024-10-29 16:42:09 +01:00
parent 1d8bd3f94a
commit fc2e4ea134
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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",