From 16a1c77ea4066658b1a90db6fa9a4dfaa02bd766 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Mon, 8 Jul 2024 23:57:14 +0300 Subject: [PATCH] test(logqlengine): update test due to API changes --- internal/logql/logqlengine/pattern_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/logql/logqlengine/pattern_test.go b/internal/logql/logqlengine/pattern_test.go index c07ad15e..9e3fdb48 100644 --- a/internal/logql/logqlengine/pattern_test.go +++ b/internal/logql/logqlengine/pattern_test.go @@ -9,6 +9,7 @@ import ( "github.com/go-faster/oteldb/internal/logql" "github.com/go-faster/oteldb/internal/logql/logqlengine/logqlabels" + "github.com/go-faster/oteldb/internal/logql/logqlengine/logqlpattern" ) func TestPatternExtractor(t *testing.T) { @@ -37,7 +38,7 @@ func TestPatternExtractor(t *testing.T) { tt := tt t.Run(fmt.Sprintf("Test%d", i+1), func(t *testing.T) { e, err := buildPatternExtractor(&logql.PatternLabelParser{ - Pattern: tt.pattern, + Pattern: logqlpattern.MustParse(tt.pattern, logqlpattern.ExtractorFlags), }) require.NoError(t, err)