From ebbbdd9b294ff1c169283b1787da9e0d30164d7e Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Thu, 17 Apr 2025 18:48:14 -0700 Subject: [PATCH] Add delay after commit to ensure GitHub API processes changes before cloning --- eks_automation/tests/test_github_client_integration.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eks_automation/tests/test_github_client_integration.py b/eks_automation/tests/test_github_client_integration.py index 7b24c33..bec46ac 100644 --- a/eks_automation/tests/test_github_client_integration.py +++ b/eks_automation/tests/test_github_client_integration.py @@ -110,6 +110,9 @@ def test_file_operations(self, temp_repo_name, cleanup_repo): ) assert branch == "main" + # Add a small delay to ensure GitHub API has processed the commit + time.sleep(2) + # Verify we can clone the repository with the file output_dir = os.path.join(work_dir, "clone") cloned_branch = self.client.clone_repository_contents(repo_name, output_dir)