Skip to content

Commit 7cf0264

Browse files
Fix broken test due to observe changes
- TestLOBRetrieval failed because we have installed a response size limiter Now all tests pass, that also pass with the upstream branch.
1 parent 7a3144d commit 7cf0264

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bindings_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,10 @@ func testLOBRetrieval(t *testing.T, useArrowFormat bool) {
14451445
for _, testSize := range testSizes {
14461446
t.Run(fmt.Sprintf("testLOB_%v_useArrowFormat=%v", strconv.Itoa(testSize), strconv.FormatBool(useArrowFormat)), func(t *testing.T) {
14471447
rows, err := dbt.query(fmt.Sprintf("SELECT randstr(%v, 124)", testSize))
1448+
if testSize > ResponseBodyLimit {
1449+
assertEqualF(t, err, ErrResponseTooLarge)
1450+
return
1451+
}
14481452
assertNilF(t, err)
14491453
defer func() {
14501454
assertNilF(t, rows.Close())

0 commit comments

Comments
 (0)