diff --git a/.travis.yml b/.travis.yml index 2a923a96..dd915873 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,6 +40,7 @@ env: - JOBS=3 - NGX_BUILD_JOBS=$JOBS - TEST_NGINX_SLEEP=0.006 + - TEST_NGINX_SKIP_COSOCKET_LOG_TEST=1 matrix: - NGINX_VERSION=1.29.4 OPENSSL_VER=3.5.4 OPENSSL_PATCH_VER=3.5.4 diff --git a/t/501-tcp-socket-timeout.t b/t/501-tcp-socket-timeout.t index 3a33d22c..769bef63 100644 --- a/t/501-tcp-socket-timeout.t +++ b/t/501-tcp-socket-timeout.t @@ -28,7 +28,11 @@ our $StapScript = $t::StapThread::StapScript; repeat_each(2); -plan tests => repeat_each() * (blocks() * 4 + 8); +if (defined $ENV{TEST_NGINX_SKIP_COSOCKET_LOG_TEST}) { + plan(skip_all => "Remove TEST_NGINX_SKIP_COSOCKET_LOG_TEST to enable this test"); +} else { + plan tests => repeat_each() * (blocks() * 4 + 8); +} our $HtmlDir = html_dir; diff --git a/t/502-udp-socket-error.t b/t/502-udp-socket-error.t index 539d06e4..74133196 100644 --- a/t/502-udp-socket-error.t +++ b/t/502-udp-socket-error.t @@ -4,7 +4,11 @@ use Test::Nginx::Socket::Lua::Stream; repeat_each(2); -plan tests => repeat_each() * (3 * blocks()); +if (defined $ENV{TEST_NGINX_SKIP_COSOCKET_LOG_TEST}) { + plan(skip_all => "Remove TEST_NGINX_SKIP_COSOCKET_LOG_TEST to enable this test"); +} else { + plan tests => repeat_each() * (3 * blocks()); +} our $HtmlDir = html_dir;