Mercurial > hg > nginx-tests
comparison proxy_websocket.t @ 317:a9621dbbd0d4
Tests: remove TODOs with 1.3.x version checks.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 23 Jul 2013 20:25:05 +0400 |
parents | b6f0537afa01 |
children | e7dc8f4d0a4b |
comparison
equal
deleted
inserted
replaced
316:f36c3532a117 | 317:a9621dbbd0d4 |
---|---|
70 $t->waitforsocket('127.0.0.1:8081') | 70 $t->waitforsocket('127.0.0.1:8081') |
71 or die "Can't start test backend"; | 71 or die "Can't start test backend"; |
72 | 72 |
73 ############################################################################### | 73 ############################################################################### |
74 | 74 |
75 TODO: { | |
76 local $TODO = 'not yet' unless $t->has_version('1.3.13'); | |
77 | |
78 # establish websocket connection | 75 # establish websocket connection |
79 | 76 |
80 my $s = websocket_connect(); | 77 my $s = websocket_connect(); |
81 ok($s, "websocket handshake"); | 78 ok($s, "websocket handshake"); |
82 | 79 |
118 | 115 |
119 is(websocket_read($s), "bar", "response pipelined"); | 116 is(websocket_read($s), "bar", "response pipelined"); |
120 | 117 |
121 websocket_write($s, "foo"); | 118 websocket_write($s, "foo"); |
122 is(websocket_read($s), "bar", "next to pipelined"); | 119 is(websocket_read($s), "bar", "next to pipelined"); |
123 } | |
124 | |
125 } | 120 } |
126 | 121 |
127 ############################################################################### | 122 ############################################################################### |
128 | 123 |
129 sub websocket_connect { | 124 sub websocket_connect { |