From 9e9519f514c671a833276fdebbe4a16d3a0fb282 Mon Sep 17 00:00:00 2001 From: Yichen Wang <18348405+Aiee@users.noreply.github.com> Date: Tue, 26 Oct 2021 13:35:06 +0800 Subject: [PATCH] Fix typo (#145) --- client_test.go | 16 ++++++++-------- ssl_connection_test.go | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/client_test.go b/client_test.go index 2603ffda..e5673b56 100644 --- a/client_test.go +++ b/client_test.go @@ -137,7 +137,7 @@ func TestConfigs(t *testing.T) { } for _, testPoolConfig := range configList { - // Initialize connectin pool + // Initialize connection pool pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error()) @@ -227,7 +227,7 @@ func TestServiceDataIO(t *testing.T) { MinConnPoolSize: 1, } - // Initialize connectin pool + // Initialize connection pool pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error()) @@ -516,7 +516,7 @@ func TestPool_SingleHost(t *testing.T) { MinConnPoolSize: 1, } - // Initialize connectin pool + // Initialize connection pool pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error()) @@ -622,7 +622,7 @@ func TestMultiThreads(t *testing.T) { MinConnPoolSize: 1, } - // Initialize connectin pool + // Initialize connection pool pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog) if err != nil { log.Fatal(fmt.Sprintf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error())) @@ -679,7 +679,7 @@ func TestLoadbalancer(t *testing.T) { MinConnPoolSize: 0, } - // Initialize connectin pool + // Initialize connection pool pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error()) @@ -766,7 +766,7 @@ func TestTimeout(t *testing.T) { MinConnPoolSize: 1, } - // Initialize connectin pool + // Initialize connection pool pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error()) @@ -848,7 +848,7 @@ func TestExecuteJson(t *testing.T) { MinConnPoolSize: 1, } - // Initialize connectin pool + // Initialize connection pool pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error()) @@ -964,7 +964,7 @@ func TestReconnect(t *testing.T) { MinConnPoolSize: 6, } - // Initialize connectin pool + // Initialize connection pool pool, err := NewConnectionPool(hostList, timeoutConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error()) diff --git a/ssl_connection_test.go b/ssl_connection_test.go index c1af70a7..ce591ed7 100644 --- a/ssl_connection_test.go +++ b/ssl_connection_test.go @@ -58,7 +58,7 @@ func TestSslConnection(t *testing.T) { InsecureSkipVerify: true, // This is only used for testing } - // Initialize connectin pool + // Initialize connection pool pool, err := NewSslConnectionPool(hostList, testPoolConfig, sslConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error()) @@ -141,7 +141,7 @@ func TestSslConnectionSelfSigned(t *testing.T) { InsecureSkipVerify: true, // This is only used for testing } - // Initialize connectin pool + // Initialize connection pool pool, err := NewSslConnectionPool(hostList, testPoolConfig, sslConfig, nebulaLog) if err != nil { t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error())