Check for a large response body, rather than exact match on the first few bytes.

This commit is contained in:
Shane Kilkelly 2015-09-08 11:50:43 +01:00
parent c6a81c94eb
commit a6fff2d4e4

View file

@ -148,7 +148,7 @@ describe "Filestore", ->
@timeout(1000 * 20)
request.get @fileUrl, (err, response, body) =>
expect(response.statusCode).to.equal 200
expect(new Buffer(body.substring(0, 8)).toString('hex')).to.equal 'efbfbd504e470d0a1a0a'
expect(body.length).to.be.greaterThan 400
done()
describe "warming the cache", ->