fix getFileStream unit test as callback no longer fires immediately

success callback is now called only when file is readable
This commit is contained in:
Brian Gough 2014-12-22 13:07:03 +00:00
parent efd6035849
commit 8b9213d09b

View file

@ -74,8 +74,8 @@ describe "FSPersistorManagerTests", ->
on:->
)
@FSPersistorManager.getFileStream @location, @name1, (err,res)=>
@Fs.createReadStream.calledWith("#{@location}/#{@name1Filtered}").should.equal.true
done()
@Fs.createReadStream.calledWith("#{@location}/#{@name1Filtered}").should.equal.true
done()
describe "copyFile", ->
beforeEach ->