comparison stream_variables.t @ 1237:e4974af3fb12

Tests: adjusted udp ports to match allocated ports range.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 13 Sep 2017 19:04:25 +0300
parents 3fc6817cd84a
children 766bcbb632ee
comparison
equal deleted inserted replaced
1236:93f749c1d5c5 1237:e4974af3fb12
67 return $msec!$time_local!$time_iso8601; 67 return $msec!$time_local!$time_iso8601;
68 } 68 }
69 69
70 server { 70 server {
71 listen 127.0.0.1:8086; 71 listen 127.0.0.1:8086;
72 listen 127.0.0.1:%%PORT_8087_UDP%% udp; 72 listen 127.0.0.1:%%PORT_8987_UDP%% udp;
73 return $protocol; 73 return $protocol;
74 } 74 }
75 } 75 }
76 76
77 EOF 77 EOF
100 100
101 $data = stream('127.0.0.1:' . port(8085))->read(); 101 $data = stream('127.0.0.1:' . port(8085))->read();
102 like($data, qr#^\d+.\d+![-+\w/: ]+![-+\dT:]+$#, 'time'); 102 like($data, qr#^\d+.\d+![-+\w/: ]+![-+\dT:]+$#, 'time');
103 103
104 is(stream('127.0.0.1:' . port(8086))->read(), 'TCP', 'protocol TCP'); 104 is(stream('127.0.0.1:' . port(8086))->read(), 'TCP', 'protocol TCP');
105 is(dgram('127.0.0.1:' . port(8087))->io('.'), 'UDP', 'protocol UDP'); 105 is(dgram('127.0.0.1:' . port(8987))->io('.'), 'UDP', 'protocol UDP');
106 106
107 ############################################################################### 107 ###############################################################################