@@ -172,50 +172,5 @@ describe('rpc core', function() {
172172 [ 'c' , 'value' ]
173173 ] ) ) . to . be ( 'a=value&b=value&c=value' ) ;
174174 } ) ;
175-
176- } ) ;
177-
178- describe ( 'request' , function ( ) {
179- var client = new RPCClient ( {
180- accessKeyId : process . env . ACCESS_KEY_ID ,
181- accessKeySecret : process . env . ACCESS_KEY_SECRET ,
182- endpoint : 'https://ecs.aliyuncs.com' ,
183- apiVersion : '2014-05-26'
184- } ) ;
185-
186- it ( 'should ok' , async function ( ) {
187- this . timeout ( 10000 ) ;
188-
189- var params = {
190- key : [ '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' ,
191- '10' , '11' ]
192- } ;
193-
194- var requestOption = {
195- method : 'POST' ,
196- timeout : 10000
197- } ;
198-
199- const result = await client . request ( 'DescribeRegions' , params , requestOption ) ;
200- expect ( result ) . to . have . key ( 'RequestId' ) ;
201- expect ( result ) . to . have . key ( 'Regions' ) ;
202- } ) ;
203-
204- it ( 'should ok with repeat list less 10 item' , async function ( ) {
205- this . timeout ( 10000 ) ;
206-
207- var params = {
208- key : [ '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' ]
209- } ;
210-
211- var requestOption = {
212- method : 'POST' ,
213- timeout : 10000
214- } ;
215-
216- const result = await client . request ( 'DescribeRegions' , params , requestOption ) ;
217- expect ( result ) . to . have . key ( 'RequestId' ) ;
218- expect ( result ) . to . have . key ( 'Regions' ) ;
219- } ) ;
220175 } ) ;
221176} ) ;
0 commit comments