   describe 'when credentials are valid', ->
     client = amazonAffiliateApi.createClient credentials
 
+    beforeEach (done) ->
+      # pause between tests, avoid getting yelled at by amazon
+      setTimeout () ->
+        done()
+      , 500
+
     describe 'when no callback is passed', ->
       it 'should return results from amazon', ->
         client.cartClear


describe 'client.browseNodeLookup(query, cb)', ->

  describe 'when credentials are valid', ->
    client = amazonAffiliateApi.createClient credentials


      it 'should return results from amazon', ->
        client.itemLookup {idType: 'UPC', itemId: '889030012227'}, (err, results) ->
          results.Items.Item.should.be.an.Array

  describe 'when credentials are invalid', ->
    client = amazonAffiliateApi.createClient awsTag: 'sfsadf', awsId: 'sfadf', awsSecret: 'fsg'
