Skip to content

Commit

Permalink
fix failing unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl committed Dec 18, 2024
1 parent 646d56a commit 1fd0406
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkg/ottl/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,11 @@ func Test_e2e_ottl_value_expressions(t *testing.T) {
statement: `Len(attributes) + Len(attributes)`,
want: int64(14),
},
{
name: "Nested converter operations",
statement: `Hex(Len(attributes) + Len(attributes))`,
want: "000000000000000e",
},
}

for _, tt := range tests {
Expand Down
4 changes: 3 additions & 1 deletion pkg/ottl/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,9 @@ func Test_parseValueExpression_full(t *testing.T) {
name: "resolve context value",
valueExpression: `attributes`,
expected: map[string]any{
"foo": "bar",
"attributes": map[string]any{
"foo": "bar",
},
},
tCtx: map[string]any{
"attributes": map[string]any{
Expand Down

0 comments on commit 1fd0406

Please sign in to comment.