mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user