dotnet / dotnet/winforms

Random failures in InputLanguage_FromCulture_SupplementalInputLanguages_Expected

Open
#13,274 2 comments 0 reactions 1 assignee Claimed by @LeafShi1 View on GitHub
help wanted test-bug
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### Test

InputLanguage_FromCulture_SupplementalInputLanguages_Expected

### Issue description

Run test `InputLanguage_FromCulture_SupplementalInputLanguages_Expected` on my local machine, one or two or even three test scenarios ​​will fail because `language` returns `null` after executing the following code

```
InstallUserLanguage(languageTag);
CultureInfo culture = new(languageTag);
InputLanguage language = InputLanguage.FromCulture(culture);
```

But running them individually all pass and this problem does not occur in the pipeline run.
![AfterChange](https://github.com/user-attachments/assets/3295e915-f35e-41c6-bcff-f7d5477c3d45)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.