@@ -478,7 +478,6 @@ describe('functions', function() {
478478
479479 // 测试带有 sessionToken 时,user 对象的正确解析
480480 it ( 'testUser' , function ( done ) {
481- this . timeout ( 5000 ) ;
482481 request ( AV . Cloud )
483482 . post ( '/1/functions/testUser' )
484483 . set ( 'X-AVOSCloud-Application-Id' , appId )
@@ -489,7 +488,6 @@ describe('functions', function() {
489488
490489 // 无效 sessionToken 测试
491490 it ( 'testUser_invalid_sessionToken' , function ( done ) {
492- this . timeout ( 5000 ) ;
493491 request ( AV . Cloud )
494492 . post ( '/1/functions/testUser' )
495493 . set ( 'X-AVOSCloud-Application-Id' , appId )
@@ -504,7 +502,6 @@ describe('functions', function() {
504502
505503 // 测试调用 run 方法时,传递 user 对象的有效性
506504 it ( 'testRunWithUser' , function ( done ) {
507- this . timeout ( 5000 ) ;
508505 request ( AV . Cloud )
509506 . post ( '/1/functions/testRunWithUser' )
510507 . set ( 'X-AVOSCloud-Application-Id' , appId )
@@ -515,7 +512,6 @@ describe('functions', function() {
515512
516513 // 测试调用 run 方法 options callback
517514 it ( 'testRun_options_callback' , function ( done ) {
518- this . timeout ( 5000 ) ;
519515 request ( AV . Cloud )
520516 . post ( '/1/functions/testRun_options_callback' )
521517 . set ( 'X-AVOSCloud-Application-Id' , appId )
@@ -526,7 +522,6 @@ describe('functions', function() {
526522
527523 // 测试调用 run 方法,返回值是 promise 类型
528524 it ( 'testRun_promise' , function ( done ) {
529- this . timeout ( 5000 ) ;
530525 request ( AV . Cloud )
531526 . post ( '/1/functions/testRun_promise' )
532527 . set ( 'X-AVOSCloud-Application-Id' , appId )
0 commit comments