         # The 'extra' param should have the args the function was called with
         assert.deepEqual @sentry.error.firstCall.args[3].args, expected_args
         done()
+      return
 
     it 'doesnt send to Sentry if the given function produces no error', (done) ->
       wrapper = @sentry.wrapper 'logger'

  describe 'wrapper with sentry enabled', ->
    beforeEach ->
      sinon.spy @sentry, 'error'
      scope = nock('https://app.getsentry.com')
        .filteringRequestBody(/.*/, '*')
        .post("/api/#{sentry_settings.project_id}/store/", '*')
        .reply(200, 'OK')

    afterEach ->
      @scope.done()

    it 'calls the given fn with its args and passes through the results', (done) ->
      wrapper = @sentry.wrapper 'logger'

        .post("/api/#{sentry_settings.project_id}/store/", '*')
        .reply(200, 'OK')

    it 'sends to Sentry if the given function produces an error', (done) ->
      wrapper = @sentry.wrapper 'logger'
      expected_err = new Error 'oops'
