Remove now unnecessary Setenv call

The call was meant to guarantee a UTC time zone to make the tests deterministic,
but as the previous commit explained, this only worked on Mac and Linux, not on
Windows. Since we now have a better fix, this workaround is no longer needed.
This commit is contained in:
stk authored and Stefan Haller committed 2026-05-02 17:59:27 +02:00
1 parent 5761f92e16
commit 3ffc4ac832
1 file changed
-3
-3
View File
@@ -1,7 +1,6 @@
package presentation
import (
"os"
"strings"
"testing"
"time"
@@ -531,8 +530,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
oldColorLevel := color.ForceSetColorLevel(terminfo.ColorLevelNone)
defer color.ForceSetColorLevel(oldColorLevel)
os.Setenv("TZ", "UTC")
focusing := false
for _, scenario := range scenarios {
if scenario.focus {