Skip to content

Commit

Permalink
Fix pointer to range variable issue in test
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
  • Loading branch information
afayngelerindbx and chaudum authored Mar 10, 2022
1 parent 9c183f5 commit 19c9bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/canary/comparator/comparator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ func TestConcurrentConfirmMissing(t *testing.T) {
c := NewComparator(output, wait, maxWait, 50*time.Hour, 15*time.Minute, 4*time.Hour, 4*time.Hour, 0, 1*time.Minute, 0, 0, 1, make(chan time.Time), make(chan time.Time), mr, false)

for _, t := range found {
c.missingEntries = append(c.missingEntries, &t)
tCopy := t
c.missingEntries = append(c.missingEntries, &tCopy)
}

wg := sync.WaitGroup{}
Expand Down

0 comments on commit 19c9bc1

Please sign in to comment.