Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
Ripped out unwanted condition, changed test
Browse files Browse the repository at this point in the history
  • Loading branch information
galvin-hsiu committed Jan 22, 2018
1 parent 2b48fa8 commit 7c4412e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions client/js/uploader.basic.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1576,9 +1576,7 @@
},

_onUploadChunkSuccess: function(id, chunkData) {
var uploadData = this._uploadData.retrieve({id: id});

if (!this._preventRetries[id] && this._options.retry.enableAuto && uploadData.status !== qq.status.PAUSED) {
if (!this._preventRetries[id] && this._options.retry.enableAuto) {
this._autoRetries[id] = 0;
}
},
Expand Down
5 changes: 3 additions & 2 deletions test/unit/chunked-uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ if (qqtest.canDownloadFileAsBlob) {
}

function testChunkedEveryFailureAndRecovery(done) {
assert.expect(6 + (expectedChunks * 17) + (expectedChunks * 6), done);

var alreadyFailed = false,
uploader = new qq.FineUploaderBasic({
request: {
Expand Down Expand Up @@ -268,6 +266,9 @@ if (qqtest.canDownloadFileAsBlob) {
assert.equal(expectedChunks, chunksSent, "Wrong # of chunks sent.");
assert.equal(expectedChunks, chunksSucceeded, "Wrong # of chunks succeeded");
assert.equal(response.testParam, "testVal");
assert.equal(response.success, true);

done();
}
}
}),
Expand Down

0 comments on commit 7c4412e

Please sign in to comment.