Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Murphy Chen <[email protected]>
  • Loading branch information
Frapschen committed Sep 4, 2024
1 parent 48d676d commit 471a0e4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions processor/routingprocessor/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ func TestLogs_RoutingWorks_Context_Ordered(t *testing.T) {
})),
l,
))
assert.Len(t, defaultExp.AllLogs(), 0)
assert.Len(t, lExpFirst.AllLogs(), 0)
assert.Len(t, lExpSecond.AllLogs(), 0)
assert.Empty(t, defaultExp.AllLogs())
assert.Empty(t, lExpFirst.AllLogs())
assert.Empty(t, lExpSecond.AllLogs())
assert.Len(t, lExpThird.AllLogs(), i, "log should only be routed to lExpThird exporter")
})
}
Expand Down Expand Up @@ -285,9 +285,9 @@ func TestLogs_RoutingWorks_ResourceAttribute_Ordered(t *testing.T) {
rl.ScopeLogs().AppendEmpty().LogRecords().AppendEmpty().Body().SetStr("this is a log")

assert.NoError(t, exp.ConsumeLogs(context.Background(), l))
assert.Len(t, defaultExp.AllLogs(), 0)
assert.Len(t, lExpFirst.AllLogs(), 0)
assert.Len(t, lExpSecond.AllLogs(), 0)
assert.Empty(t, defaultExp.AllLogs())
assert.Empty(t, lExpFirst.AllLogs())
assert.Empty(t, lExpSecond.AllLogs())
assert.Len(t, lExpThird.AllLogs(), i, "log should only be routed to lExpThird exporter")
})
}
Expand Down Expand Up @@ -555,8 +555,8 @@ func TestLogs_RoutingWorks_ResourceAttribute_WithOTTL_Ordered(t *testing.T) {

assert.NoError(t, exp.ConsumeLogs(context.Background(), l))

assert.Len(t, defaultExp.AllLogs(), 0)
assert.Len(t, lExpFirst.AllLogs(), 0)
assert.Empty(t, defaultExp.AllLogs())
assert.Empty(t, lExpFirst.AllLogs())

// we expect Statement eval in order and log should only be routed to lExpSecond exporter
assert.Len(t, lExpSecond.AllLogs(), i, "log should only be routed to lExpSecond exporter")
Expand Down

0 comments on commit 471a0e4

Please sign in to comment.