File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ describe('test start bucket manager', function () {
3535 deleteOps . push ( qiniu . rs . deleteOp ( srcBucket , key ) ) ;
3636 } ) ;
3737
38- bucketManager . batch ( deleteOps , function ( respErr , respBody ) {
38+ deleteOps . length && bucketManager . batch ( deleteOps , function ( respErr , respBody ) {
3939 respBody . forEach ( function ( ret , i ) {
4040 ret . code . should . be . eql (
4141 200 ,
@@ -357,7 +357,7 @@ describe('test start bucket manager', function () {
357357 // 空间生命周期
358358 describe ( 'test lifeRule' , function ( ) {
359359 const bucket = srcBucket ;
360- const ruleName = 'test_rule_name_' + Math . floor ( Math . random ( ) * 1000 ) ;
360+ const ruleName = 'test_rule_name' ;
361361
362362 function testGet ( expectItem , nextCall , otherRespInfo ) {
363363 bucketManager . getBucketLifecycleRule (
You can’t perform that action at this time.
0 commit comments