Skip to content

Commit

Permalink
[chore] [receiver/sqlquery] Fix flaky test TestLogsQueryReceiver_Coll…
Browse files Browse the repository at this point in the history
…ect (#25191)

Fixes
#25189
  • Loading branch information
dmitryax authored Aug 14, 2023
1 parent 69e7b5a commit 1e6ad40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/sqlqueryreceiver/logs_receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestLogsQueryReceiver_Collect(t *testing.T) {

logRecord = logs.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(1)
assert.Equal(t, "63", logRecord.Body().Str())
assert.NotEqual(t, logRecord.ObservedTimestamp(), pcommon.NewTimestampFromTime(now))
assert.GreaterOrEqual(t, logRecord.ObservedTimestamp(), pcommon.NewTimestampFromTime(now))

assert.Equal(t,
logs.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).ObservedTimestamp(),
Expand Down

0 comments on commit 1e6ad40

Please sign in to comment.