public void TestLargeRetryCount()
{
var maxRetries = 1000;
var maxMilliseconds = 1;
ClientConfig config = new AmazonDynamoDBConfig();
config.MaxErrorRetry = 100;
var coreRetryPolicy = new DefaultRetryPolicy(config)
{
MaxBackoffInMilliseconds = maxMilliseconds
};
var ddbRetryPolicy = new DynamoDBRetryPolicy(config)
{
MaxBackoffInMilliseconds = maxMilliseconds
};
var context = new ExecutionContext(new RequestContext(false), null);
for (int i = 0; i < maxRetries; i++)
{
context.RequestContext.Retries = i;
coreRetryPolicy.WaitBeforeRetry(context);
ddbRetryPolicy.WaitBeforeRetry(context);
}
}