Merge pull request #45007 from corhere/fix-ineffective-add

daemon/logger/awslogs: fix ineffective Add in test
This commit is contained in:
Cory Snider 2023-02-15 15:48:43 -05:00 committed by GitHub
commit efb6950299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1446,7 +1446,7 @@ func TestCollectBatchWithDuplicateTimestamps(t *testing.T) {
for i := 0; i < times; i++ {
line := strconv.Itoa(i)
if i%2 == 0 {
timestamp.Add(1 * time.Nanosecond)
timestamp = timestamp.Add(1 * time.Nanosecond)
}
stream.Log(&logger.Message{
Line: []byte(line),