From 6c446c1b19fb9143930fa1d833c611da3c7bf279 Mon Sep 17 00:00:00 2001 From: Alistair Hey Date: Wed, 24 Jun 2020 15:37:17 +0100 Subject: [PATCH] Fix name in request delay parameter config Signed-off-by: Alistair Hey --- auth0/auth0_client_test.go | 2 +- auth0/provider.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auth0/auth0_client_test.go b/auth0/auth0_client_test.go index 443be121..56b3a3bd 100644 --- a/auth0/auth0_client_test.go +++ b/auth0/auth0_client_test.go @@ -13,7 +13,7 @@ import ( // 3. Simulate throttled load to GetUserById // 4. Clean up the created user func TestAccGetUserByIdIsNotRateLimited(t *testing.T) { - auth0RetryCount := 2 + auth0RetryCount := 20 timeBeetwenRetries := time.Second numberOfRequests := 100 numberOfGoRoutines := 10 diff --git a/auth0/provider.go b/auth0/provider.go index b3e71ea6..577c279f 100644 --- a/auth0/provider.go +++ b/auth0/provider.go @@ -84,7 +84,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) { clientId := d.Get("auth0_client_id").(string) clientSecret := d.Get("auth0_client_secret").(string) maxRetryCount := d.Get("auth0_request_max_retry_count").(int) - timeBetweenRetries := d.Get("auth0_request_max_retry_count").(int) + timeBetweenRetries := d.Get("auth0_time_between_retries").(int) config := &Config{ domain: domain,