         assert.deepEqual err, null
         assert not @sentry.error.called, 'Expected sentry.error to not be called'
         done()
+      return
 
   get_mock_data = ->
     err = new Error 'Testing sentry'

        # The 'extra' param should have the args the function was called with
        assert.deepEqual @sentry.error.firstCall.args[3].args, expected_args
        done()

    it 'doesnt send to Sentry if the given function produces no error', (done) ->
      wrapper = @sentry.wrapper 'logger'

        # 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'
