comparison stream_js_buffer.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 d16310f0ada7
children
comparison
equal deleted inserted replaced
1809:c41ac260299f 1810:7cf848422b28
157 157
158 $t->try_run('no njs ngx')->plan(5); 158 $t->try_run('no njs ngx')->plan(5);
159 159
160 ############################################################################### 160 ###############################################################################
161 161
162 TODO: {
163 local $TODO = 'not yet'
164 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0';
165
166 is(stream('127.0.0.1:' . port(8081))->read(), 'buffer', 'var type'); 162 is(stream('127.0.0.1:' . port(8081))->read(), 'buffer', 'var type');
167 is(stream('127.0.0.1:' . port(8082))->read(), 'true', 'binary var'); 163 is(stream('127.0.0.1:' . port(8082))->read(), 'true', 'binary var');
168 164
169 stream('127.0.0.1:' . port(8083))->io('x'); 165 stream('127.0.0.1:' . port(8083))->io('x');
170 stream('127.0.0.1:' . port(8084))->io('x'); 166 stream('127.0.0.1:' . port(8084))->io('x');
175 171
176 ok(index($t->read_file('error.log'), 'cb_mismatch:mixing string and buffer') 172 ok(index($t->read_file('error.log'), 'cb_mismatch:mixing string and buffer')
177 > 0, 'cb mismatch'); 173 > 0, 'cb mismatch');
178 ok(index($t->read_file('error.log'), 'cb_mismatch2:mixing string and buffer') 174 ok(index($t->read_file('error.log'), 'cb_mismatch2:mixing string and buffer')
179 > 0, 'cb mismatch'); 175 > 0, 'cb mismatch');
180 }
181 176
182 ############################################################################### 177 ###############################################################################