Skip to content

Commit 5d1fdc7

Browse files
committed
fix tests
1 parent ab27add commit 5d1fdc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

receiver/oracledbreceiver/scraper_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,10 @@ func TestScrapesTopNLogsOnlyWhenIntervalHasElapsed(t *testing.T) {
504504
assert.Equal(t, 1, logsCol1.ResourceLogs().At(0).ScopeLogs().Len(), "Collection should run when lastExecutionTimestamp is not available")
505505
assert.False(t, scrpr.lastExecutionTimestamp.IsZero(), "A value should be set for lastExecutionTimestamp after a successful collection")
506506

507-
scrpr.lastExecutionTimestamp.Add(-10 * time.Second)
507+
scrpr.lastExecutionTimestamp = scrpr.lastExecutionTimestamp.Add(-10 * time.Second)
508508
logsCol2, err := scrpr.scrapeLogs(t.Context())
509509
assert.Equal(t, 0, logsCol2.ResourceLogs().Len(), "top_query should not be collected until %s elapsed.", scrpr.topQueryCollectCfg.CollectionInterval.String())
510-
require.NoError(t, err, "coll")
510+
require.NoError(t, err)
511511
})
512512
}
513513
}

0 commit comments

Comments
 (0)