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