Skip to content

Commit 5afe1ee

Browse files
committed
fix TestConnectionPooling
1 parent 97118aa commit 5afe1ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/connection_pool_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ type TestCategory struct {
2424
}
2525

2626
func TestConnectionPooling(t *testing.T) {
27-
t.Skip()
2827
setupConnectionPoolTestTables(t)
2928

3029
sqlDB, err := DB.DB()
@@ -95,7 +94,7 @@ func TestConnectionPooling(t *testing.T) {
9594
case 2:
9695
// Long-running query (simulate connection hold)
9796
var products []TestProduct
98-
err := DB.Raw("SELECT * FROM test_products WHERE ROWNUM <= 10").Scan(&products).Error
97+
err := DB.Raw("SELECT * FROM \"test_products\" WHERE ROWNUM <= 10").Scan(&products).Error
9998
time.Sleep(100 * time.Millisecond)
10099
if err != nil {
101100
results <- fmt.Sprintf("Goroutine %d LONG-QUERY failed: %v", id, err)

tests/passed-tests.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,3 +409,4 @@ TestWhereClauseInjection
409409
TestUpdateInjection
410410
TestFirstOrCreateInjection
411411
TestUserInsertScenarios
412+
TestConnectionPooling

0 commit comments

Comments
 (0)