From 957486e4f8910db4eb6a7ac3807b64be3467d1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Or=C4=99ziak?= Date: Wed, 10 Jan 2024 03:07:24 +0100 Subject: [PATCH] Add sleep before check TestAccKeycloakDataSourceRealm_basic --- provider/data_source_keycloak_realm_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/provider/data_source_keycloak_realm_test.go b/provider/data_source_keycloak_realm_test.go index b393a73b2..039264018 100644 --- a/provider/data_source_keycloak_realm_test.go +++ b/provider/data_source_keycloak_realm_test.go @@ -2,6 +2,7 @@ package provider import ( "fmt" + "time" "testing" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" @@ -16,7 +17,10 @@ func TestAccKeycloakDataSourceRealm_basic(t *testing.T) { resource.Test(t, resource.TestCase{ ProviderFactories: testAccProviderFactories, - PreCheck: func() { testAccPreCheck(t) }, + PreCheck: func() { + testAccPreCheck(t) + time.Sleep(10 * time.Second) + }, CheckDestroy: testAccCheckKeycloakRealmDestroy(), Steps: []resource.TestStep{ {