Skip to content

Commit 47654ff

Browse files
runningcodeclaude
andcommitted
test: Add #[serial] to GitHub env var tests
Add #[serial(github_event_path)] attribute to test_get_github_pr_number and test_get_github_base_ref to prevent parallel execution with other tests that manipulate GitHub environment variables. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1fd856c commit 47654ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/vcs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,7 @@ mod tests {
15171517
}
15181518

15191519
#[test]
1520+
#[serial(github_event_path)]
15201521
fn test_get_github_pr_number() {
15211522
std::env::set_var("GITHUB_EVENT_NAME", "pull_request");
15221523
std::env::set_var("GITHUB_REF", "refs/pull/123/merge");
@@ -1534,6 +1535,7 @@ mod tests {
15341535
}
15351536

15361537
#[test]
1538+
#[serial(github_event_path)]
15371539
fn test_get_github_base_ref() {
15381540
std::env::set_var("GITHUB_EVENT_NAME", "pull_request");
15391541
std::env::set_var("GITHUB_BASE_REF", "main");

0 commit comments

Comments
 (0)