Skip to content

Commit

Permalink
Make PDO_OCI test more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbj committed Sep 10, 2020
1 parent bc508b0 commit bca32de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ext/pdo_oci/tests/pdo_oci_stream_2a.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
PDO OCI: Inserts 10K with 1 number and 2 LOB columns (stress test)
PDO OCI: Inserts 1K with 1 number and 2 LOB columns (stress test)
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
Expand Down Expand Up @@ -51,8 +51,8 @@ $a8 = str_repeat('h', 4093);
$a9 = str_repeat('i', 4094);
$a10 = str_repeat('j', 4095);

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

?>
--EXPECT--
Inserting 10000 Records ... Done
Inserting 1000 Records ... Done
2 changes: 1 addition & 1 deletion ext/pdo_oci/tests/pdo_oci_stream_2b.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
PDO OCI: Fetches 10K records from a table that contains 1 number and 2 LOB columns (stress test)
PDO OCI: Fetches 1K records from a table that contains 1 number and 2 LOB columns (stress test)
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
Expand Down

0 comments on commit bca32de

Please sign in to comment.