diff --git a/connection_pool/connection_pool_test.go b/connection_pool/connection_pool_test.go index 344caf05c..0d7887682 100644 --- a/connection_pool/connection_pool_test.go +++ b/connection_pool/connection_pool_test.go @@ -33,7 +33,7 @@ var servers = []string{ } var connOpts = tarantool.Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", } diff --git a/connection_pool/connector_test.go b/connection_pool/connector_test.go index f53a05b22..7f2f0965a 100644 --- a/connection_pool/connector_test.go +++ b/connection_pool/connector_test.go @@ -93,7 +93,7 @@ type configuredTimeoutMock struct { func (m *configuredTimeoutMock) ConfiguredTimeout(mode Mode) (time.Duration, error) { m.called++ m.mode = mode - m.timeout = 5 * time.Second + m.timeout = 15 * time.Second if m.retErr { return m.timeout, fmt.Errorf("err") } diff --git a/crud/example_test.go b/crud/example_test.go index 3f2ebbf88..1aa87232d 100644 --- a/crud/example_test.go +++ b/crud/example_test.go @@ -15,7 +15,7 @@ const ( ) var exampleOpts = tarantool.Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", } diff --git a/crud/tarantool_test.go b/crud/tarantool_test.go index 71f7d62b1..8be2762b6 100644 --- a/crud/tarantool_test.go +++ b/crud/tarantool_test.go @@ -20,7 +20,7 @@ var invalidSpaceName = "invalid" var indexNo = uint32(0) var indexName = "primary_index" var opts = tarantool.Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", } diff --git a/datetime/datetime_test.go b/datetime/datetime_test.go index f4cc8b2a1..657bf89d1 100644 --- a/datetime/datetime_test.go +++ b/datetime/datetime_test.go @@ -37,7 +37,7 @@ var isDatetimeSupported = false var server = "127.0.0.1:3013" var opts = Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", } diff --git a/decimal/example_test.go b/decimal/example_test.go index 1d335a4c3..fe0461bb5 100644 --- a/decimal/example_test.go +++ b/decimal/example_test.go @@ -22,7 +22,7 @@ import ( func Example() { server := "127.0.0.1:3013" opts := tarantool.Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, Reconnect: 1 * time.Second, MaxReconnects: 3, User: "test", diff --git a/multi/example_test.go b/multi/example_test.go index e43461141..3654d506f 100644 --- a/multi/example_test.go +++ b/multi/example_test.go @@ -9,7 +9,7 @@ import ( func ExampleConnect() { multiConn, err := Connect([]string{"127.0.0.1:3031", "127.0.0.1:3032"}, tarantool.Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", }) @@ -21,7 +21,7 @@ func ExampleConnect() { func ExampleConnectWithOpts() { multiConn, err := ConnectWithOpts([]string{"127.0.0.1:3301", "127.0.0.1:3302"}, tarantool.Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", }, OptsMulti{ diff --git a/multi/multi_test.go b/multi/multi_test.go index fc165d1d4..eed699b60 100644 --- a/multi/multi_test.go +++ b/multi/multi_test.go @@ -20,7 +20,7 @@ var spaceNo = uint32(617) var spaceName = "test" var indexNo = uint32(0) var connOpts = tarantool.Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", } diff --git a/queue/example_connection_pool_test.go b/queue/example_connection_pool_test.go index e41cdc639..4f2cd4ad6 100644 --- a/queue/example_connection_pool_test.go +++ b/queue/example_connection_pool_test.go @@ -140,12 +140,12 @@ func Example_connectionPool() { "127.0.0.1:3015", } connOpts := tarantool.Opts{ - Timeout: 1 * time.Second, + Timeout: 3 * time.Second, User: "test", Pass: "test", } poolOpts := connection_pool.OptsPool{ - CheckTimeout: 1 * time.Second, + CheckTimeout: 3 * time.Second, ConnectionHandler: h, } connPool, err := connection_pool.ConnectWithOpts(servers, connOpts, poolOpts) diff --git a/settings/tarantool_test.go b/settings/tarantool_test.go index d32767116..86d64744e 100644 --- a/settings/tarantool_test.go +++ b/settings/tarantool_test.go @@ -19,7 +19,7 @@ var isSettingsSupported = false var server = "127.0.0.1:3013" var opts = tarantool.Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", } diff --git a/tarantool_test.go b/tarantool_test.go index 125642dcf..c99a9f8b9 100644 --- a/tarantool_test.go +++ b/tarantool_test.go @@ -75,7 +75,7 @@ var spaceName = "test" var indexNo = uint32(0) var indexName = "primary" var opts = Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", //Concurrency: 32, diff --git a/uuid/uuid_test.go b/uuid/uuid_test.go index e04ab5ab9..e94578dea 100644 --- a/uuid/uuid_test.go +++ b/uuid/uuid_test.go @@ -20,7 +20,7 @@ var isUUIDSupported = false var server = "127.0.0.1:3013" var opts = Opts{ - Timeout: 500 * time.Millisecond, + Timeout: 1500 * time.Millisecond, User: "test", Pass: "test", }