Merge branch '15654-wb-gem-update' refs #15654
[arvados.git] / services / keep-balance / collection_test.go
index 629ff3a140a6872e9edde9c6d1815fc6f2b9090b..6aaf07abae395241fdbd5f26be8ae111f14aac1f 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
 package main
 
 import (
@@ -26,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
                                }
@@ -34,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++