d/l/awslogs: fix ineffective Add in test
...flagged by golangci-lint v1.51.1 (staticcheck).
Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit e66995d840
)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
134008381b
commit
a9485b75b1
1 changed files with 1 additions and 1 deletions
|
@ -1374,7 +1374,7 @@ func TestCollectBatchWithDuplicateTimestamps(t *testing.T) {
|
|||
for i := 0; i < times; i++ {
|
||||
line := fmt.Sprintf("%d", i)
|
||||
if i%2 == 0 {
|
||||
timestamp.Add(1 * time.Nanosecond)
|
||||
timestamp = timestamp.Add(1 * time.Nanosecond)
|
||||
}
|
||||
stream.Log(&logger.Message{
|
||||
Line: []byte(line),
|
||||
|
|
Loading…
Reference in a new issue