14287: Dedup "UUIDs seen" list before diff in test.
authorTom Clegg <tclegg@veritasgenetics.com>
Mon, 6 May 2019 20:44:12 +0000 (16:44 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Mon, 17 Jun 2019 13:54:39 +0000 (09:54 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

services/keep-balance/collection_test.go

index a548b1ff9f338fb47f7998fe3423c06f5b2f2ad4..6aaf07abae395241fdbd5f26be8ae111f14aac1f 100644 (file)
@@ -30,7 +30,6 @@ func (s *integrationSuite) TestIdenticalTimestamps(c *check.C) {
                        var lastMod time.Time
                        sawUUID := make(map[string]bool)
                        err := EachCollection(&s.config.Client, pageSize, func(c arvados.Collection) error {
-                               got[trial] = append(got[trial], c.UUID)
                                if c.ModifiedAt == nil {
                                        return nil
                                }
@@ -38,6 +37,7 @@ func (s *integrationSuite) TestIdenticalTimestamps(c *check.C) {
                                        // dup
                                        return nil
                                }
+                               got[trial] = append(got[trial], c.UUID)
                                sawUUID[c.UUID] = true
                                if lastMod == *c.ModifiedAt {
                                        streak++