File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ var WebSocket = require("ws");
8
8
9
9
var ConfigurableProxy = require ( "../lib/configproxy" ) . ConfigurableProxy ;
10
10
11
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
12
+
11
13
describe ( "Proxy Tests" , function ( ) {
12
14
var port = 8902 ;
13
15
var testPort = port + 10 ;
@@ -268,10 +270,10 @@ describe("Proxy Tests", function () {
268
270
} ) ;
269
271
270
272
it ( "custom error target" , function ( done ) {
271
- var port = 55555 ;
273
+ var proxyPort = 55550 ;
272
274
util
273
- . setupProxy ( port , { errorTarget : "http://127.0.0.1:55565" } , [ ] )
274
- . then ( ( ) => r ( "http://127.0.0.1:" + port + "/foo/bar" ) )
275
+ . setupProxy ( proxyPort , { errorTarget : "http://127.0.0.1:55565" } , [ ] )
276
+ . then ( ( ) => r ( "http://127.0.0.1:" + proxyPort + "/foo/bar" ) )
275
277
. then ( ( body ) => done . fail ( "Expected 404" ) )
276
278
. catch ( ( err ) => {
277
279
expect ( err . statusCode ) . toEqual ( 404 ) ;
@@ -338,7 +340,7 @@ describe("Proxy Tests", function () {
338
340
} ) ;
339
341
340
342
it ( "Redirect location with rewriting" , function ( done ) {
341
- var proxyPort = 55555 ;
343
+ var proxyPort = 55556 ;
342
344
var options = {
343
345
protocolRewrite : "https" ,
344
346
autoRewrite : true ,
You can’t perform that action at this time.
0 commit comments