mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-24 14:31:51 +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"
|
"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()
|
||||||
|
|||||||
Reference in New Issue
Block a user