fixed bug where file uploader was calling cb on read stream not write stream, race condition created.

This commit is contained in:
Henry Oswald
2014-02-14 18:13:22 +00:00
parent b46f320882
commit 65f849aad0
2 changed files with 6 additions and 2 deletions
@@ -10,7 +10,11 @@ describe "FileStoreHandler", ->
beforeEach ->
@fs =
createReadStream : sinon.stub()
@writeStream = {my:"writeStream", on:->}
@writeStream =
my:"writeStream"
on: (type, cb)->
if type == "end"
cb()
@readStream = {my:"readStream"}
@request = sinon.stub()
@settings = apis:{filestore:{url:"http//filestore.sharelatex.test"}}