21696: Exercise less efficient code path by mixing up block order.
authorTom Clegg <tom@curii.com>
Tue, 16 Apr 2024 18:07:43 +0000 (14:07 -0400)
committerTom Clegg <tom@curii.com>
Tue, 16 Apr 2024 18:07:43 +0000 (14:07 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

sdk/go/arvados/fs_collection_test.go

index 5d9c52c860d3e1fd59c9b7896741444e9ed24c04..e02ef9ee3e3f63ebf019e7d5eebe63c490f77ac9 100644 (file)
@@ -1667,7 +1667,7 @@ func (s *CollectionFSUnitSuite) testLargeManifest(c *check.C, dirCount, filesPer
                        }
                }
                for j := 0; j < filesPerDir; j++ {
-                       fmt.Fprintf(mb, " %d:%d:dir%d/file%d", j*blocksPerFile*blksize, blocksPerFile*blksize, j, j)
+                       fmt.Fprintf(mb, " %d:%d:dir%d/file%d", (filesPerDir-j-1)*blocksPerFile*blksize, blocksPerFile*blksize, j, j)
                }
                mb.Write([]byte{'\n'})
        }