summaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/ws/ws-test.js
blob: f3549152fc7ee03bd8d4aee71d45635df9d8d094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * ws-test.js: Tests for proxying raw Websocket requests.
 *
 * (C) 2010 Nodejitsu Inc.
 * MIT LICENCE
 *
 */

var vows = require('vows'),
    macros = require('../macros'),
    helpers = require('../helpers/index');

vows.describe(helpers.describe('websocket', 'ws')).addBatch({
  "With a valid target server": {
    "and no latency": macros.ws.assertProxied({
      raw: true
    }),
    // "and latency": macros.ws.assertProxied({
    //   raw: true,
    //   latency: 2000
    // })
  }
}).export(module);