 
     it 'otherwise should start the instance', ->
       subject(mockArgs('aws start dummy.01'))
-      waits 20
+      waits PROMISE_DELAY
       runs ->
         expect(specUtils.spies.ec2.startInstances.mostRecentCall.args[0]).toEqual({
           InstanceIds: [ 'InstanceId' ]


    it 'otherwise should create the instance', ->
      subject(mockArgs('aws create dummy.02 --cluster dummy --user ubuntu --ssh-key /path/to/id_rsa --ssh-pub-key ' + pubKeyPath))
      waits 20
      runs ->
        runParams = specUtils.spies.ec2.runInstances.mostRecentCall.args[0]
        saveParams = utils.saveInstanceToCluster.mostRecentCall.args[1]

API = require('../../modules/providers/aws')
specUtils = require('./utils')
mockArgs = specUtils.mockArgs

PROMISE_DELAY = 50

describe 'aws', ->
  mockEC2 = specUtils.mock.ec2()
