17464: Fix auto-enable DebugLocksPanicMode.
authorTom Clegg <tom@curii.com>
Fri, 18 Jun 2021 15:28:08 +0000 (11:28 -0400)
committerTom Clegg <tom@curii.com>
Fri, 18 Jun 2021 15:28:08 +0000 (11:28 -0400)
refs #17464

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

sdk/go/arvados/fs_site_test.go

index a41a9f4da992f34febd1312d03d25b3995344658..dc432114a60ec58e4925be28ddbbc227ce4188e9 100644 (file)
@@ -36,7 +36,7 @@ func init() {
        // Enable DebugLocksPanicMode sometimes. Don't enable it all
        // the time, though -- it adds many calls to time.Sleep(),
        // which could hide different bugs.
-       if time.Now().Seconds()&1 == 0 {
+       if time.Now().Second()&1 == 0 {
                DebugLocksPanicMode = true
        }
 }