Skip to content

Commit 7dda60f

Browse files
more test.
1 parent 155fbad commit 7dda60f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,15 @@ env:
4040
- JOBS=3
4141
- NGX_BUILD_JOBS=$JOBS
4242
- TEST_NGINX_SLEEP=0.006
43+
- TEST_NGINX_SKIP_COSOCKET_LOG_TEST=1
4344
matrix:
4445
- NGINX_VERSION=1.29.4 OPENSSL_VER=3.5.4 OPENSSL_PATCH_VER=3.5.4
4546

4647
services:
4748
- memcache
4849
- redis-server
49-
- dnsmasq
5050

5151
before_install:
52-
- echo "address=/localhost/127.0.0.1" | sudo tee -a /etc/dnsmasq.conf
53-
- sudo systemctl restart dnsmasq
5452
- wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
5553
- echo "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/openresty.list
5654
- sudo apt-get update

t/501-tcp-socket-timeout.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ our $StapScript = $t::StapThread::StapScript;
2828

2929
repeat_each(2);
3030

31-
plan tests => repeat_each() * (blocks() * 4 + 8);
31+
if (defined $ENV{TEST_NGINX_SKIP_COSOCKET_LOG_TEST}) {
32+
plan(skip_all => "Remove TEST_NGINX_SKIP_COSOCKET_LOG_TEST to enable this test");
33+
} else {
34+
plan tests => repeat_each() * (blocks() * 4 + 8);
35+
}
3236

3337
our $HtmlDir = html_dir;
3438

t/502-udp-socket-error.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ use Test::Nginx::Socket::Lua::Stream;
44

55
repeat_each(2);
66

7-
plan tests => repeat_each() * (3 * blocks());
7+
if (defined $ENV{TEST_NGINX_SKIP_COSOCKET_LOG_TEST}) {
8+
plan(skip_all => "Remove TEST_NGINX_SKIP_COSOCKET_LOG_TEST to enable this test");
9+
} else
10+
plan tests => repeat_each() * (3 * blocks());
11+
}
812

913
our $HtmlDir = html_dir;
1014

0 commit comments

Comments
 (0)