Tweak test for better travis compat.

pull/185/head^2
Jack Christensen 2016-09-22 07:47:28 -05:00
parent f5b269d56a
commit 79acbeac0e
1 changed files with 3 additions and 3 deletions

View File

@ -366,12 +366,12 @@ func TestPoolAcquireAndReleaseCycleAutoConnect(t *testing.T) {
if err != nil { if err != nil {
t.Fatalf("Unable to Acquire: %v", err) t.Fatalf("Unable to Acquire: %v", err)
} }
rows, _ := c.Query("select 1") rows, _ := c.Query("select 1, pg_sleep(0.02)")
rows.Close() rows.Close()
pool.Release(c) pool.Release(c)
} }
for i := 0; i < 1000; i++ { for i := 0; i < 10; i++ {
doSomething() doSomething()
} }
@ -381,7 +381,7 @@ func TestPoolAcquireAndReleaseCycleAutoConnect(t *testing.T) {
} }
var wg sync.WaitGroup var wg sync.WaitGroup
for i := 0; i < 1000; i++ { for i := 0; i < 10; i++ {
wg.Add(1) wg.Add(1)
go func() { go func() {
defer wg.Done() defer wg.Done()