Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / http-proxy / test / ws / routing-table-test.js
1 /*
2  * routing-tabletest.js: Test for proxying `socket.io` and raw `WebSocket` requests using a ProxyTable.
3  *
4  * (C) 2010 Nodejitsu Inc.
5  * MIT LICENCE
6  *
7  */
8
9 var vows = require('vows'),
10     macros = require('../macros'),
11     helpers = require('../helpers/index');
12
13 vows.describe(helpers.describe('routing-proxy', 'ws')).addBatch({
14   "With a valid target server": {
15     "and no latency": {
16       "using ws": macros.ws.assertProxied(),
17       "using socket.io": macros.ws.assertProxied({
18         raw: true
19       }),
20     },
21     // "and latency": macros.websocket.assertProxied({
22     //   latency: 2000
23     // })
24   }
25 }).export(module);