Skip to content

Commit 323e144

Browse files
committed
use real host to prevent timeouts
1 parent a19447f commit 323e144

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

ext/oci8/tests/extauth_01.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Test External Authentication errors with oci_connect
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('oci8')) die ("skip no oci8 extension");
6-
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
76
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip feature not available on Windows platforms");
87
?>
98
--INI--
@@ -67,7 +66,7 @@ var_dump($c);
6766

6867
echo "Test 7\n";
6968

70-
$c = oci_connect('/', '', 'anything', null, OCI_CRED_EXT);
69+
$c = oci_connect('/', '', 'localhost', null, OCI_CRED_EXT);
7170
if (!$c) {
7271
$m = oci_error();
7372
var_dump($m);
@@ -76,7 +75,7 @@ var_dump($c);
7675

7776
echo "Test 8\n";
7877

79-
$c = oci_connect('/', null, 'anything', null, OCI_CRED_EXT);
78+
$c = oci_connect('/', null, 'localhost', null, OCI_CRED_EXT);
8079
if (!$c) {
8180
$m = oci_error();
8281
var_dump($m);

ext/oci8/tests/extauth_02.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Test External Authentication errors with oci_new_connect
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('oci8')) die ("skip no oci8 extension");
6-
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
76
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip feature not available on Windows platforms");
87
?>
98
--INI--
@@ -67,7 +66,7 @@ var_dump($c);
6766

6867
echo "Test 7\n";
6968

70-
$c = oci_new_connect('/', '', 'anything', null, OCI_CRED_EXT);
69+
$c = oci_new_connect('/', '', 'localhost', null, OCI_CRED_EXT);
7170
if (!$c) {
7271
$m = oci_error();
7372
var_dump($m);
@@ -76,7 +75,7 @@ var_dump($c);
7675

7776
echo "Test 8\n";
7877

79-
$c = oci_new_connect('/', null, 'anything', null, OCI_CRED_EXT);
78+
$c = oci_new_connect('/', null, 'localhost', null, OCI_CRED_EXT);
8079
if (!$c) {
8180
$m = oci_error();
8281
var_dump($m);

ext/oci8/tests/extauth_03.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Test External Authentication errors with oci_pconnect
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('oci8')) die ("skip no oci8 extension");
6-
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
76
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip feature not available on Windows platforms");
87
?>
98
--INI--
@@ -67,7 +66,7 @@ var_dump($c);
6766

6867
echo "Test 7\n";
6968

70-
$c = oci_pconnect('/', '', 'anything', null, OCI_CRED_EXT);
69+
$c = oci_pconnect('/', '', 'localhost', null, OCI_CRED_EXT);
7170
if (!$c) {
7271
$m = oci_error();
7372
var_dump($m);
@@ -76,7 +75,7 @@ var_dump($c);
7675

7776
echo "Test 8\n";
7877

79-
$c = oci_pconnect('/', null, 'anything', null, OCI_CRED_EXT);
78+
$c = oci_pconnect('/', null, 'localhost', null, OCI_CRED_EXT);
8079
if (!$c) {
8180
$m = oci_error();
8281
var_dump($m);

0 commit comments

Comments
 (0)