Skip to content

Commit 9e9519f

Browse files
authored
Fix typo (#145)
1 parent 44efb04 commit 9e9519f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

client_test.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func TestConfigs(t *testing.T) {
137137
}
138138

139139
for _, testPoolConfig := range configList {
140-
// Initialize connectin pool
140+
// Initialize connection pool
141141
pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog)
142142
if err != nil {
143143
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) {
227227
MinConnPoolSize: 1,
228228
}
229229

230-
// Initialize connectin pool
230+
// Initialize connection pool
231231
pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog)
232232
if err != nil {
233233
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) {
516516
MinConnPoolSize: 1,
517517
}
518518

519-
// Initialize connectin pool
519+
// Initialize connection pool
520520
pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog)
521521
if err != nil {
522522
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) {
622622
MinConnPoolSize: 1,
623623
}
624624

625-
// Initialize connectin pool
625+
// Initialize connection pool
626626
pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog)
627627
if err != nil {
628628
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) {
679679
MinConnPoolSize: 0,
680680
}
681681

682-
// Initialize connectin pool
682+
// Initialize connection pool
683683
pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog)
684684
if err != nil {
685685
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) {
766766
MinConnPoolSize: 1,
767767
}
768768

769-
// Initialize connectin pool
769+
// Initialize connection pool
770770
pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog)
771771
if err != nil {
772772
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) {
848848
MinConnPoolSize: 1,
849849
}
850850

851-
// Initialize connectin pool
851+
// Initialize connection pool
852852
pool, err := NewConnectionPool(hostList, testPoolConfig, nebulaLog)
853853
if err != nil {
854854
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) {
964964
MinConnPoolSize: 6,
965965
}
966966

967-
// Initialize connectin pool
967+
// Initialize connection pool
968968
pool, err := NewConnectionPool(hostList, timeoutConfig, nebulaLog)
969969
if err != nil {
970970
t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error())

ssl_connection_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestSslConnection(t *testing.T) {
5858
InsecureSkipVerify: true, // This is only used for testing
5959
}
6060

61-
// Initialize connectin pool
61+
// Initialize connection pool
6262
pool, err := NewSslConnectionPool(hostList, testPoolConfig, sslConfig, nebulaLog)
6363
if err != nil {
6464
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) {
141141
InsecureSkipVerify: true, // This is only used for testing
142142
}
143143

144-
// Initialize connectin pool
144+
// Initialize connection pool
145145
pool, err := NewSslConnectionPool(hostList, testPoolConfig, sslConfig, nebulaLog)
146146
if err != nil {
147147
t.Fatalf("fail to initialize the connection pool, host: %s, port: %d, %s", address, port, err.Error())

0 commit comments

Comments
 (0)