Skip to content

Commit

Permalink
actually make the test case a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Garbett1 committed Jan 12, 2025
1 parent df2e968 commit 1eb79f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processor/loghouseprocessor/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ func Test_promoteResourceAttrs(t *testing.T) {
rl := plog.NewResourceLogs()
_ = rl.Resource().Attributes().FromRaw(map[string]any{"r1": "original"})
l1 := plog.NewLogRecord()
_ = l1.Attributes().FromRaw(map[string]any{"resource": "r1"})
_ = l1.Attributes().FromRaw(map[string]any{"resource": "r2"})

promoteResourceAttrs(&l1, &rl)

_, ok := rl.Resource().Attributes().Get("r1")
_, ok := rl.Resource().Attributes().Get("r2")
assert.False(t, ok)
})

Expand Down

0 comments on commit 1eb79f5

Please sign in to comment.