Skip to content

Commit

Permalink
Fix windows upload test double callback issue
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cheung committed Aug 3, 2016
1 parent afb41e9 commit 48c93d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/upload-download.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ describe('storage service', function () {
.expect('Content-Type', /json/)
.expect(200, function (err, res) {
assert.deepEqual(res.body, {"result": {"files": {"image": [
{"container": "album1", "name": "test.jpg", "type": "image/jpeg",
{"container": "album1", "name": "test.jpg", "type": "image/jpeg",
"size": 60475}
]}, "fields": {}}});
done();
Expand Down Expand Up @@ -210,6 +210,7 @@ describe('storage service', function () {
.post('/imageContainers/album1/upload')
.attach('image', path.join(__dirname, './fixtures/largeImage.jpg'))
.set('Accept', 'application/json')
.set('Connection', 'keep-alive')
.expect('Content-Type', /json/)
.expect(200, function (err, res) {
assert(err);
Expand Down

0 comments on commit 48c93d4

Please sign in to comment.