Skip to content

Commit bca32de

Browse files
committed
Make PDO_OCI test more resilient
1 parent bc508b0 commit bca32de

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/pdo_oci/tests/pdo_oci_stream_2a.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PDO OCI: Inserts 10K with 1 number and 2 LOB columns (stress test)
2+
PDO OCI: Inserts 1K with 1 number and 2 LOB columns (stress test)
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
@@ -51,8 +51,8 @@ $a8 = str_repeat('h', 4093);
5151
$a9 = str_repeat('i', 4094);
5252
$a10 = str_repeat('j', 4095);
5353

54-
printf("Inserting 10000 Records ... ");
55-
for($i=0; $i<1000; $i++) {
54+
printf("Inserting 1000 Records ... ");
55+
for($i=0; $i<100; $i++) {
5656
do_insert($db, $i * 10 + 1, $a1, $a10);
5757
do_insert($db, $i * 10 + 2, $a2, $a9);
5858
do_insert($db, $i * 10 + 3, $a3, $a8);
@@ -71,4 +71,4 @@ printf("Done\n");
7171

7272
?>
7373
--EXPECT--
74-
Inserting 10000 Records ... Done
74+
Inserting 1000 Records ... Done

ext/pdo_oci/tests/pdo_oci_stream_2b.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PDO OCI: Fetches 10K records from a table that contains 1 number and 2 LOB columns (stress test)
2+
PDO OCI: Fetches 1K records from a table that contains 1 number and 2 LOB columns (stress test)
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');

0 commit comments

Comments
 (0)