Mercurial > hg > nginx-tests
diff stream_udp_proxy.t @ 1334:c4f58dfe8207
Tests: stream udp tests adjusted for upcoming udp streams.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 24 May 2018 20:52:00 +0300 |
parents | e4974af3fb12 |
children | 42e37e0434d5 |
line wrap: on
line diff
--- a/stream_udp_proxy.t +++ b/stream_udp_proxy.t @@ -22,7 +22,7 @@ use Test::Nginx::Stream qw/ dgram /; select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/stream udp/)->plan(5) +my $t = Test::Nginx->new()->has(qw/stream udp/)->plan(4) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -69,8 +69,8 @@ is($s->io('1', read => 1, read_timeout = $s = dgram('127.0.0.1:' . port(8982)); is($s->io('1'), '1', 'proxy responses 1'); +$s = dgram('127.0.0.1:' . port(8982)); is($s->io('2', read => 2), '12', 'proxy responses 2'); -is($s->io('3', read => 3, read_timeout => 0.5), '12', 'proxy responses 3'); $s = dgram('127.0.0.1:' . port(8983)); is($s->io('3', read => 3), '123', 'proxy responses default');