@@ -73,8 +73,9 @@ vows.describe('node-http-proxy/proxy-table').addBatch({
73
73
}
74
74
} ;
75
75
76
- runner . startTargetServer ( 8103 , that . output ) ;
77
- request ( options , that . callback ) ;
76
+ runner . startTargetServer ( 8103 , that . output , function ( ) {
77
+ request ( options , that . callback ) ;
78
+ } ) ;
78
79
} ) ;
79
80
} ,
80
81
"should receive 'hello dynamic.com'" : function ( err , res , body ) {
@@ -88,8 +89,10 @@ vows.describe('node-http-proxy/proxy-table').addBatch({
88
89
"When using an instance of ProxyTable combined with HttpProxy directly" : {
89
90
topic : function ( ) {
90
91
this . server = runner . startProxyServerWithTableAndLatency ( 8110 , 100 , {
91
- 'foo.com' : 'localhost:8111' ,
92
- 'bar.com' : 'localhost:8112'
92
+ router : {
93
+ 'foo.com' : 'localhost:8111' ,
94
+ 'bar.com' : 'localhost:8112'
95
+ }
93
96
} , this . callback ) ;
94
97
} ,
95
98
"an incoming request to foo.com" : assertProxiedWithTarget ( runner , 'foo.com' , 8110 , 8111 ) ,
@@ -99,7 +102,7 @@ vows.describe('node-http-proxy/proxy-table').addBatch({
99
102
} ) . addBatch ( {
100
103
"When the tests are over" : {
101
104
topic : function ( ) {
102
- fs . unlinkSync ( routeFile ) ;
105
+ // fs.unlinkSync(routeFile);
103
106
return runner . closeServers ( ) ;
104
107
} ,
105
108
"the servers should clean up" : function ( ) {
0 commit comments