From 1c78b1f7faf87ae33bfd33f22e64e52c50943446 Mon Sep 17 00:00:00 2001 From: dhaus67 Date: Mon, 2 Jan 2023 08:45:31 +0100 Subject: [PATCH 1/2] fix-booleanpolicy-test (#4253) --- pkg/booleanpolicy/evaluator/evaluator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/booleanpolicy/evaluator/evaluator_test.go b/pkg/booleanpolicy/evaluator/evaluator_test.go index f6ff9982d99d7..501f20307ff54 100644 --- a/pkg/booleanpolicy/evaluator/evaluator_test.go +++ b/pkg/booleanpolicy/evaluator/evaluator_test.go @@ -1344,7 +1344,7 @@ func TestDifferentBaseTypes(t *testing.T) { FieldQueries: []*query.FieldQuery{ // This test will fail in three years, but if this test still matters then, // we have other problems... - {Field: "BaseTS", Values: []string{">1000d"}}, + {Field: "BaseTS", Values: []string{">2000d"}}, }, }, }, From 08a0cc577ad13518941f12531be5d0c3c9f59f23 Mon Sep 17 00:00:00 2001 From: dhaus67 Date: Mon, 2 Jan 2023 09:43:45 +0100 Subject: [PATCH 2/2] booleanpolicy-test-follow-up (#4255) --- pkg/booleanpolicy/evaluator/evaluator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/booleanpolicy/evaluator/evaluator_test.go b/pkg/booleanpolicy/evaluator/evaluator_test.go index 501f20307ff54..35fa819bdc05e 100644 --- a/pkg/booleanpolicy/evaluator/evaluator_test.go +++ b/pkg/booleanpolicy/evaluator/evaluator_test.go @@ -1342,9 +1342,9 @@ func TestDifferentBaseTypes(t *testing.T) { }, q: &query.Query{ FieldQueries: []*query.FieldQuery{ - // This test will fail in three years, but if this test still matters then, + // This test will fail in 1000 years, but if this test still matters then, // we have other problems... - {Field: "BaseTS", Values: []string{">2000d"}}, + {Field: "BaseTS", Values: []string{">01/01/3023"}}, }, }, },