Skip to content

Commit

Permalink
Fix conn_pool test, not covering multiplex channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Oct 31, 2013
1 parent 2c90662 commit 20637e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conn_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func TestGetFromEmptyPool(t *testing.T) {
// should not block
sv := connPool.Get("foo")
sv := connPool.Get("foo", true)
if sv != nil {
t.Error("get non nil server conn from empty conn pool")
}
Expand Down Expand Up @@ -41,7 +41,7 @@ func TestConnPool(t *testing.T) {
}

for _, td := range testData {
sv := connPool.Get(td.hostPort)
sv := connPool.Get(td.hostPort, true)
if td.found {
if sv == nil {
t.Error("should find conn for", td.hostPort)
Expand Down

0 comments on commit 20637e9

Please sign in to comment.