Merge pull request #3964 from zhsj/flaky-metastore-test

snapshots: fix flaky TestMetastore
This commit is contained in:
Derek McGowan
2020-01-15 11:05:24 -08:00
committed by GitHub

View File

@@ -261,7 +261,7 @@ var cmpSnapshotInfo = cmp.FilterPath(
// actual value should be within a few seconds of now // actual value should be within a few seconds of now
now := time.Now() now := time.Now()
delta := now.Sub(actual) delta := now.Sub(actual)
threshold := 10 * time.Second threshold := 30 * time.Second
return delta > -threshold && delta < threshold return delta > -threshold && delta < threshold
})) }))