comparison stream_js_fetch.t @ 1810:7cf848422b28

Tests: removed remaining njs version checks older than 0.6.0.
author Dmitry Volyntsev <xeioex@nginx.com>
date Fri, 02 Dec 2022 17:46:16 -0800
parents 564f74bf6e4d
children 520fb74cce4c
comparison
equal deleted inserted replaced
1809:c41ac260299f 1810:7cf848422b28
175 $t->run_daemon(\&stream_daemon, port(8090), port(8091)); 175 $t->run_daemon(\&stream_daemon, port(8090), port(8091));
176 $t->waitforsocket('127.0.0.1:' . port(8090)); 176 $t->waitforsocket('127.0.0.1:' . port(8090));
177 $t->waitforsocket('127.0.0.1:' . port(8091)); 177 $t->waitforsocket('127.0.0.1:' . port(8091));
178 178
179 ############################################################################### 179 ###############################################################################
180
181 local $TODO = 'not yet'
182 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.1';
183 180
184 is(stream('127.0.0.1:' . port(8081))->io('###'), '', 'preread not enough'); 181 is(stream('127.0.0.1:' . port(8081))->io('###'), '', 'preread not enough');
185 is(stream('127.0.0.1:' . port(8081))->io("\xAB\xCDQZ##"), "\xAB\xCDQZ##", 182 is(stream('127.0.0.1:' . port(8081))->io("\xAB\xCDQZ##"), "\xAB\xCDQZ##",
186 'preread validated'); 183 'preread validated');
187 is(stream('127.0.0.1:' . port(8081))->io("\xAC\xCDQZ##"), '', 184 is(stream('127.0.0.1:' . port(8081))->io("\xAC\xCDQZ##"), '',