Pārlūkot izejas kodu

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

daemon/logger/awslogs: fix ineffective Add in test
Cory Snider 2 gadi atpakaļ
vecāks
revīzija
efb6950299
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      daemon/logger/awslogs/cloudwatchlogs_test.go

+ 1 - 1
daemon/logger/awslogs/cloudwatchlogs_test.go

@@ -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),