   it 'retry x times', ->
     count = 0
     nikita
-    .call retry: 3, wait: 500, (options) ->
+    .call retry: 3, sleep: 100, (options) ->
       options.attempt.should.eql count++
       throw Error 'Catchme'
     .next (err) ->

      count.should.eql 3
    .promise()

  it 'retry x times', ->
    logs = []
    nikita
    .on 'text', (log) -> logs.push log.message if /^Retry/.test log.message
    .call retry: 2, wait: 500, relax: true, (options) ->
      throw Error 'Catchme'
    .call ->
      logs.should.eql ['Retry on error, attempt 1']

  it 'retry true is unlimited', ->
    count = 0
    nikita
    .call retry: true, sleep: 200, (options) ->
      throw Error 'Catchme' if count++ < 10
    .promise()
