comparison stream_js_variables.t @ 1558:e9096949d5f5

Tests: stream_js_variables.t cleanup.
author Dmitry Volyntsev <xeioex@nginx.com>
date Thu, 19 Mar 2020 19:34:58 +0300
parents 53ed2231403b
children f3ba4c74de31
comparison
equal deleted inserted replaced
1557:b194552fcc21 1558:e9096949d5f5
95 is(stream('127.0.0.1:' . port(8082))->read(), 'not_found', 'not found set'); 95 is(stream('127.0.0.1:' . port(8082))->read(), 'not_found', 'not found set');
96 96
97 $t->stop(); 97 $t->stop();
98 98
99 ############################################################################### 99 ###############################################################################
100 #
101 sub get {
102 my ($url, %extra) = @_;
103
104 my $s = IO::Socket::INET->new(
105 Proto => 'tcp',
106 PeerAddr => '127.0.0.1:' . port(8080)
107 ) or die "Can't connect to nginx: $!\n";
108
109 return http_get($url, socket => $s);
110 }
111
112 ###############################################################################