Skip to content

Commit

Permalink
Fix typo (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee authored Oct 26, 2021
1 parent 44efb04 commit 9e9519f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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()))
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions ssl_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 9e9519f

Please sign in to comment.