Merge branch '15654-wb-gem-update' refs #15654
[arvados.git] / 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++