Skip to content

Commit

Permalink
Add delay after commit to ensure GitHub API processes changes before …
Browse files Browse the repository at this point in the history
…cloning
  • Loading branch information
Dave Arnold committed Apr 18, 2025
1 parent e8e6b80 commit ebbbdd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eks_automation/tests/test_github_client_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ebbbdd9

Please sign in to comment.