(self, af, addr, success)
| 227 | self.assertEqual(sorted(self.connect_futures.keys()), sorted(keys)) |
| 228 | |
| 229 | def resolve_connect(self, af, addr, success): |
| 230 | future = self.connect_futures.pop((af, addr)) |
| 231 | if success: |
| 232 | future.set_result(self.streams[addr]) |
| 233 | else: |
| 234 | self.streams.pop(addr) |
| 235 | future.set_exception(IOError()) |
| 236 | # Run the loop to allow callbacks to be run. |
| 237 | self.io_loop.add_callback(self.stop) |
| 238 | self.wait() |
| 239 | |
| 240 | def assert_connector_streams_closed(self, conn): |
| 241 | for stream in conn.streams: |
no test coverage detected