From bca32de0c7d030e75d052fb51255bc9303fa010c Mon Sep 17 00:00:00 2001 From: Christopher Jones <sixd@php.net> Date: Thu, 10 Sep 2020 17:33:30 +1000 Subject: [PATCH] Make PDO_OCI test more resilient --- ext/pdo_oci/tests/pdo_oci_stream_2a.phpt | 8 ++++---- ext/pdo_oci/tests/pdo_oci_stream_2b.phpt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/pdo_oci/tests/pdo_oci_stream_2a.phpt b/ext/pdo_oci/tests/pdo_oci_stream_2a.phpt index bd4cb8ad11..163a2c5fee 100644 --- a/ext/pdo_oci/tests/pdo_oci_stream_2a.phpt +++ b/ext/pdo_oci/tests/pdo_oci_stream_2a.phpt @@ -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'); @@ -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); @@ -71,4 +71,4 @@ printf("Done\n"); ?> --EXPECT-- -Inserting 10000 Records ... Done +Inserting 1000 Records ... Done diff --git a/ext/pdo_oci/tests/pdo_oci_stream_2b.phpt b/ext/pdo_oci/tests/pdo_oci_stream_2b.phpt index a50b4815c3..de09c48728 100644 --- a/ext/pdo_oci/tests/pdo_oci_stream_2b.phpt +++ b/ext/pdo_oci/tests/pdo_oci_stream_2b.phpt @@ -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'); -- 2.40.0