From c31ee0e48f6d5bdeb8804c8c54cdc3d8ccb2e37a Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Wed, 10 Jun 2020 12:23:06 -0700 Subject: [PATCH] Fixed the login timeout test (#1141) --- test/functional/sqlsrv/srv_007_login_timeout.phpt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/functional/sqlsrv/srv_007_login_timeout.phpt b/test/functional/sqlsrv/srv_007_login_timeout.phpt index 8145c370..8112394b 100644 --- a/test/functional/sqlsrv/srv_007_login_timeout.phpt +++ b/test/functional/sqlsrv/srv_007_login_timeout.phpt @@ -1,14 +1,18 @@ --TEST-- False connection with LoginTimeout option --DESCRIPTION-- -Intentionally provide an invalid server name and set LoginTimeout. Verify the time elapsed. +Intentionally provide an invalid server and set LoginTimeout. Verify the time elapsed. +The difference in time elapsed is platform dependent. In some Linux distros, extra delay +may be caused by the attempts to resolve non-existent hostnames. Already set leeway to 2 +seconds to allow some room of such errors, but this test remains fragile, especially +outside Windows. Thus, use an invalid IP address instead when running in any non-Windows platform. --SKIPIF-- --FILE--