diff --git a/compose/service/values/validator_test.go b/compose/service/values/validator_test.go index 90becc78d..05e3a19eb 100644 --- a/compose/service/values/validator_test.go +++ b/compose/service/values/validator_test.go @@ -230,7 +230,7 @@ func Test_validator_customExpr(t *testing.T) { ) f.Expressions.Validators = []types.ModuleFieldValidator{ - {Test: "value > 5", Error: "value is lower than 5"}, + {Test: "value < 5", Error: "value is lower than 5"}, } m.Fields = append(m.Fields, f) r.Values = r.Values.Replace("num", "1") diff --git a/pkg/expr/func_time_test.go b/pkg/expr/func_time_test.go index 5084a5369..7a7087b18 100644 --- a/pkg/expr/func_time_test.go +++ b/pkg/expr/func_time_test.go @@ -42,10 +42,10 @@ func Example_parseISODate() { } func Example_parseDate() { - eval(`date("1993-02-02 06:00:00+00:00")`, nil) + eval(`date("1993-02-02 06:00:00+01:10")`, nil) // output: - // 1993-02-02 06:00:00 +0000 +0000 + // 1993-02-02 06:00:00 +0110 +0110 } func Example_parseDuration() {