Skip to content

Commit 0baed26

Browse files
committed
Fix flaky test
1 parent 80f169a commit 0baed26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bench_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func Benchmark_filterMap(b *testing.B) {
178178
Ints []int
179179
}
180180
env := Env{
181-
Ints: make([]int, 1000),
181+
Ints: make([]int, 100),
182182
}
183183
for i := 1; i <= len(env.Ints); i++ {
184184
env.Ints[i-1] = i
@@ -195,7 +195,7 @@ func Benchmark_filterMap(b *testing.B) {
195195
b.StopTimer()
196196

197197
require.NoError(b, err)
198-
require.Len(b, out.([]interface{}), 142)
198+
require.Len(b, out.([]interface{}), 14)
199199
require.Equal(b, 14, out.([]interface{})[0])
200200
}
201201

builtin/builtin_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestBuiltin(t *testing.T) {
6565
{`fromJSON("[1, 2, 3]")`, []interface{}{1.0, 2.0, 3.0}},
6666
{`toBase64("hello")`, "aGVsbG8="},
6767
{`fromBase64("aGVsbG8=")`, "hello"},
68-
{`now().Format("2006-01-02T15:04:05Z")`, time.Now().Format("2006-01-02T15:04:05Z")},
68+
{`now().Format("2006-01-02T15:04Z")`, time.Now().Format("2006-01-02T15:04Z")},
6969
{`duration("1h")`, time.Hour},
7070
{`date("2006-01-02T15:04:05Z")`, time.Date(2006, 1, 2, 15, 4, 5, 0, time.UTC)},
7171
{`date("2006.01.02", "2006.01.02")`, time.Date(2006, 1, 2, 0, 0, 0, 0, time.UTC)},

0 commit comments

Comments
 (0)