Skip to content

Commit

Permalink
pooltest: fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Vicent Marti <[email protected]>
  • Loading branch information
vmg committed May 20, 2024
1 parent ce8b026 commit 26a6c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vttablet/tabletserver/connpool/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ func TestConnPoolSetCapacity(t *testing.T) {
defer connPool.Close()

assert.Panics(t, func() {
connPool.SetCapacity(-10)
_ = connPool.SetCapacity(context.Background(), -10)
})
connPool.SetCapacity(10)
_ = connPool.SetCapacity(context.Background(), 10)
if connPool.Capacity() != 10 {
t.Fatalf("capacity should be 10")
}
Expand Down

0 comments on commit 26a6c41

Please sign in to comment.