Skip to content

test: Update some tests in command package to use t.Parallel#38688

Draft
SarahFrench wants to merge 1 commit into
mainfrom
parallel-tests-command-pkg
Draft

test: Update some tests in command package to use t.Parallel#38688
SarahFrench wants to merge 1 commit into
mainfrom
parallel-tests-command-pkg

Conversation

@SarahFrench
Copy link
Copy Markdown
Member

I went looking for places we could use t.Parallel in the command package's tests (chasing the high of #38679 😭 ) and realised that the tests there often change the current working directory so mostly are incapable of running in parallel.

This PR has a bunch of tests I found that could be made to run in parallel but it has little to no impact on how long the command package's test suite runs for.

Fixes #

Target Release

1.16.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

Also, replace use of `io/ioutil` in `TestPluginSHA256LockFile_Read`
@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant