tests: set timezone to UTC for consistency

The test would fail if you're running it from a different timezone
This commit is contained in:
Alexis Couvreur
2023-01-09 13:01:04 -05:00
parent b6d73a3587
commit 33d5d0905a

View File

@@ -4,6 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"math/rand" "math/rand"
"os"
"strconv" "strconv"
"sync/atomic" "sync/atomic"
"testing" "testing"
@@ -104,6 +105,7 @@ func TestEntries(t *testing.T) {
} }
func TestMarshalJSON(t *testing.T) { func TestMarshalJSON(t *testing.T) {
os.Setenv("TZ", "")
assert := assert.New(t) assert := assert.New(t)
rg := New[int](0) rg := New[int](0)
defer rg.Stop() defer rg.Stop()