Skip to content

Commit

Permalink
Don't bomb simulated mobile locale tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Oct 15, 2024
1 parent ff14bc2 commit 6719ddc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lang/locale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ func TestSystemLocale(t *testing.T) {
return
}

if len(info) == 0 {
info = "en_US"
}

loc := SystemLocale()
assert.Equal(t, info[:2], loc.String()[:2])
}

0 comments on commit 6719ddc

Please sign in to comment.