Skip to content

Commit 7b16a73

Browse files
committed
fix bucket lifecycle tests
1 parent b01cf4c commit 7b16a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rs.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)