Skip to content

Commit

Permalink
chore: change and delete the bucket used for test (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyie authored May 8, 2020
1 parent d721265 commit b43a20f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/node/bucket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('test/bucket.test.js', () => {

/* eslint no-restricted-syntax: [0] */
for (const bucketObj of bucketResult.buckets) {
if (bucketObj.name.startsWith('ali-oss-test-bucket-') || bucketObj.name.startsWith('ali-oss-list-buckets-')) {
if (bucketObj.name.startsWith('ali-oss')) {
/* eslint no-await-in-loop: [0] */
await store.deleteBucket(bucketObj.name);
}
Expand Down
4 changes: 2 additions & 2 deletions test/node/object.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('test/object.test.js', () => {
bucket = bucket.substring(0, bucket.length - 1);

// just for archive bucket test
archvieBucket = `oss-archvie-bucket-${prefix.replace(/[/.]/g, '-')}`;
archvieBucket = `ali-oss-archvie-bucket-${prefix.replace(/[/.]/g, '-')}`;
archvieBucket = archvieBucket.substring(0, archvieBucket.length - 1);

bucketRegion = config.region;
Expand Down Expand Up @@ -1258,7 +1258,7 @@ describe('test/object.test.js', () => {
assert.equal(typeof object.res.headers['x-oss-request-id'], 'string');
resHeaders = object.res.headers;

otherBucket = `ali-copy-object-source-bucket-${prefix.replace(/[/.]/g, '-')}`;
otherBucket = `ali-oss-copy-source-bucket-${prefix.replace(/[/.]/g, '-')}`;
otherBucket = otherBucket.substring(0, otherBucket.length - 1);
await store.putBucket(otherBucket);
store.useBucket(otherBucket);
Expand Down

0 comments on commit b43a20f

Please sign in to comment.