mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Clear LC_* env vars when running LANG tests (#5568)
In the event that LC_ALL was set, for example, the tests would fail as it takes precedence over LANG. Tiny change that prevents language tests from failing if LC_ALL is set (I also added LC_MESSAGES but I am not sure if that's also needed, from what I read it also takes precedence) so I did not open an issue prior, hopefully that's ok!
This commit is contained in:
commit
8bc329a5a6
|
|
@ -104,6 +104,8 @@ func TestNewTranslationSetFromConfig(t *testing.T) {
|
|||
for _, s := range scenarios {
|
||||
t.Run(s.name, func(t *testing.T) {
|
||||
log := newDummyLog()
|
||||
t.Setenv("LC_ALL", "")
|
||||
t.Setenv("LC_MESSAGES", "")
|
||||
t.Setenv("LANG", s.envLanguage)
|
||||
actualTranslationSet, err := NewTranslationSetFromConfig(log, s.configLanguage)
|
||||
if s.expectedErr {
|
||||
|
|
|
|||
Loading…
Reference in a new issue