From 481f57785521faa7a4b577ce248642f1b436e4e1 Mon Sep 17 00:00:00 2001 From: Brandon Johnson Date: Thu, 15 Feb 2024 15:28:34 -0500 Subject: [PATCH] fix tests after modifying error message --- pkg/ottl/ottlfuncs/func_parse_csv_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/ottl/ottlfuncs/func_parse_csv_test.go b/pkg/ottl/ottlfuncs/func_parse_csv_test.go index e597ad4c7cbd..859df2d82cb0 100644 --- a/pkg/ottl/ottlfuncs/func_parse_csv_test.go +++ b/pkg/ottl/ottlfuncs/func_parse_csv_test.go @@ -262,7 +262,7 @@ func Test_ParseCSV(t *testing.T) { }, }, }, - parseError: "error getting value in ottl.StandardStringGetter[interface {}]: cannot get", + parseError: "error getting value for target in ParseCSV: error getting value in ottl.StandardStringGetter[interface {}]: cannot get", }, { name: "Invalid header (strict mode)", @@ -278,7 +278,7 @@ func Test_ParseCSV(t *testing.T) { }, }, }, - parseError: "error getting value in ottl.StandardStringGetter[interface {}]: cannot get", + parseError: "error getting value for header in ParseCSV: error getting value in ottl.StandardStringGetter[interface {}]: cannot get", }, { name: "Invalid args", @@ -443,7 +443,7 @@ func Test_ParseCSV(t *testing.T) { }, Mode: ottl.NewTestingOptional("ignoreQuotes"), }, - parseError: "error getting value in ottl.StandardStringGetter[interface {}]: cannot get", + parseError: "error getting value for target in ParseCSV: error getting value in ottl.StandardStringGetter[interface {}]: cannot get", }, { name: "Invalid header (ignoreQuotes mode)", @@ -460,7 +460,7 @@ func Test_ParseCSV(t *testing.T) { }, Mode: ottl.NewTestingOptional("ignoreQuotes"), }, - parseError: "error getting value in ottl.StandardStringGetter[interface {}]: cannot get", + parseError: "error getting value for header in ParseCSV: error getting value in ottl.StandardStringGetter[interface {}]: cannot get", }, { name: "Empty header string (ignoreQuotes)",