mhart / kinesalite

An implementation of Amazon's Kinesis built on LevelDB
MIT License
808 stars 86 forks source link

Added the ability to mock a ProvisionedThroughputExceededException on PutRecord #50

Open DaveB93 opened 7 years ago

DaveB93 commented 7 years ago

I needed to test some client changes to handle a ProvisionedThroughputExceededException and I found your library that pretended to be Kinesis. It was close enough to the real thing, and I was able to add a command line parameter to simulate a X percent chance to have a ProvisionedThrougputExceededException. I've submitted a pull request just in case you think anyone else would find this useful.