Skip to content

Commit 4287ac9

Browse files
Improve CI speed by changing repo targeted by Forks tests (#258)
Pull #251 changed the repo targeted by the forks tests from `microsoft/PowerShellForGitHub` to `octocat/Hello-World` in order to prevent the accidental deletion of real forks when running the UT's locally against your own account. In practice, this almost doubled the execution time of the UT's, because the execution time of the Forks API's took so much longer against a repo with 1400+ forks. Changing the test over to use a repo that currently only has 39 forks (several orders of magnitude fewer).
1 parent e57a956 commit 4287ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/GitHubRepositoryForks.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ try
2020
# Define Script-scoped, readonly, hidden variables.
2121
@{
2222
upstreamOwnerName = 'octocat'
23-
upstreamRepositoryName = 'Hello-World'
23+
upstreamRepositoryName = 'git-consortium'
2424
}.GetEnumerator() | ForEach-Object {
2525
Set-Variable -Force -Scope Script -Option ReadOnly -Visibility Private -Name $_.Key -Value $_.Value
2626
}

0 commit comments

Comments
 (0)