Mercurial > hg > nginx-tests
changeset 1433:3e0dcf1e7752
Tests: keep stream_udp_limit_rate.t TODOs for a while.
It's useful to have tests pass on the latest (unfixed) version available.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 22 Jan 2019 14:37:04 +0300 |
parents | d17fb72140f2 |
children | fc8341cf92a3 |
files | stream_udp_limit_rate.t |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream_udp_limit_rate.t Fri Jan 18 16:05:23 2019 +0300 +++ b/stream_udp_limit_rate.t Tue Jan 22 14:37:04 2019 +0300 @@ -74,13 +74,24 @@ # datagram doesn't get split +my $t1; + +TODO: { +local $TODO = 'split datagram' unless $t->has_version('1.15.9'); + $s = dgram('127.0.0.1:' . port(8983)); is($s->io($str), $str, 'download'); -my $t1 = time(); +$t1 = time(); is($s->io($str), $str, 'download 2'); + +} + my $t2 = time(); cmp_ok($t1, '<', $t2, 'download 2 delayed'); +TODO: { +todo_skip 'infinite event report', 3 unless $t->has_version('1.15.9'); + $s = dgram('127.0.0.1:' . port(8984)); is($s->io($str), $str, 'upload'); is($s->io($str, read_timeout => 0.5), '', 'upload limited'); @@ -88,6 +99,8 @@ select undef, undef, undef, 1.6; is($s->io($str), $str, 'upload passed'); +} + ############################################################################### sub udp_daemon {