Skip to content

Commit 1904cdd

Browse files
committed
add force
1 parent be9edc6 commit 1904cdd

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

test/rs.test.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,16 @@ describe('test start step2:', function() {
3636
TEST_BUCKET
3737
);
3838
var uptoken = putPolicy.token();
39-
qiniu.io.putFile(uptoken, logo, imageFile, null, function(err, ret) {
40-
should.not.exist(err);
41-
});
4239

43-
qiniu.io.putFile(uptoken, logo1, imageFile, null, function(err, ret) {
40+
qiniu.io.putFile(uptoken, logo, imageFile, null, function(err, ret) {
4441
should.not.exist(err);
45-
done();
4642
});
4743

4844
qiniu.io.putFile(uptoken, logo2, imageFile, null, function(err, ret) {
4945
should.not.exist(err);
5046
done();
5147
});
5248

53-
qiniu.io.putFile(uptoken, logo3, imageFile, null, function(err, ret) {
54-
should.not.exist(err);
55-
done();
56-
});
57-
5849
});
5950

6051
describe('rs.Client#stat()', function() {
@@ -68,7 +59,7 @@ describe('test start step2:', function() {
6859
});
6960

7061
describe('rs.Client#copy()', function() {
71-
it('copy logo.png to logo5.png', function(done) {
62+
it('copy logo.png to logo1.png', function(done) {
7263
client.copy(TEST_BUCKET, logo, TEST_BUCKET, logo5, function(err, ret) {
7364
should.not.exist(err);
7465
done();
@@ -77,7 +68,7 @@ describe('test start step2:', function() {
7768
});
7869

7970
describe('rs.Client#forceCopy()', function() {
80-
it('copy logo.png to logo1.png', function(done) {
71+
it('copy logo.png to logo3.png', function(done) {
8172
client.forceCopy(TEST_BUCKET, logo, TEST_BUCKET, logo1, 1, function(err, ret) {
8273
should.not.exist(err);
8374
done();

0 commit comments

Comments
 (0)