Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky PowerShell unit test #957

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

ericcornelissen
Copy link
Owner

Relates to #908

Summary

Update the expression for generating test strings that shouldn't be considered flags by the PowerShell flag protection logic to avoid generating strings starting with "`-".

Update the expression for generating test strings that shouldn't be
considered flags by the PowerShell flag protection logic to avoid
generating strings starting with "`-" (backtick, hyphen) as that is
considered a flag by the PowerShell flag protection logic (as seen from
the regular expression for generating flag prefixes).

This fixes a flaky test introduced in [1].

--
1. 6fe552d
@github-actions github-actions bot added the test Relates to testing label Jun 15, 2023
@ericcornelissen ericcornelissen enabled auto-merge (squash) June 15, 2023 21:47
@ericcornelissen ericcornelissen merged commit 8a22b03 into main Jun 15, 2023
35 checks passed
@ericcornelissen ericcornelissen deleted the flaky-powershell-flag-protection-test branch June 15, 2023 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Relates to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant