From 8b9213d09bd5d2a34bce23e355990cfaeeaa3b17 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 22 Dec 2014 13:07:03 +0000 Subject: [PATCH] fix getFileStream unit test as callback no longer fires immediately success callback is now called only when file is readable --- .../filestore/test/unit/coffee/FSPersistorManagerTests.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/filestore/test/unit/coffee/FSPersistorManagerTests.coffee b/services/filestore/test/unit/coffee/FSPersistorManagerTests.coffee index b69b17c1aa..786f6be323 100644 --- a/services/filestore/test/unit/coffee/FSPersistorManagerTests.coffee +++ b/services/filestore/test/unit/coffee/FSPersistorManagerTests.coffee @@ -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 ->