Skip to content

Commit 931dbf3

Browse files
committed
Fix date test
1 parent cb6c8ca commit 931dbf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/time/time_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ func TestTime(t *testing.T) {
104104

105105
func TestTime_duration(t *testing.T) {
106106
env := map[string]interface{}{
107-
"date": time.Date(2000, time.Month(1), 1, 0, 0, 0, 0, time.UTC),
107+
"foo": time.Date(2000, time.Month(1), 1, 0, 0, 0, 0, time.UTC),
108108
}
109-
program, err := expr.Compile(`now() - duration("1h") < now() && date + duration("24h") < now()`, expr.Env(env))
109+
program, err := expr.Compile(`now() - duration("1h") < now() && foo + duration("24h") < now()`, expr.Env(env))
110110
require.NoError(t, err)
111111

112112
output, err := expr.Run(program, env)

0 commit comments

Comments
 (0)