Skip to content

Commit

Permalink
[chore]: enable negative-positive rule from testifylint (#35046)
Browse files Browse the repository at this point in the history
#### Description

Testifylint is a linter that provides best practices with the use of
testify.

This PR enables
[negative-positive](https://github.com/Antonboom/testifylint?tab=readme-ov-file#negative-positive)
rule from [testifylint](https://github.com/Antonboom/testifylint)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
  • Loading branch information
mmorel-35 authored Sep 12, 2024
1 parent add8b0c commit 5c60097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unstructured_to_logdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func TestUnstructuredListToLogData(t *testing.T) {
logRecords := rl.ScopeLogs().At(0).LogRecords()
assert.Equal(t, 1, rl.ScopeLogs().Len())
assert.Equal(t, 1, logRecords.Len())
assert.Greater(t, logRecords.At(0).ObservedTimestamp().AsTime().Unix(), int64(0))
assert.Positive(t, logRecords.At(0).ObservedTimestamp().AsTime().Unix())
assert.Equal(t, logRecords.At(0).ObservedTimestamp().AsTime().Unix(), observedAt.Unix())
})

Expand Down

0 comments on commit 5c60097

Please sign in to comment.