Explorar o código

fix getFileStream unit test as callback no longer fires immediately

success callback is now called only when file is readable
Brian Gough %!s(int64=12) %!d(string=hai) anos
pai
achega
8b9213d09b

+ 2 - 2
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 ->