From 1189cc40f2bea63d2d381a4c95617c869c5c99cc Mon Sep 17 00:00:00 2001 From: Shengjing Zhu Date: Wed, 15 Jan 2020 23:08:36 +0800 Subject: [PATCH] snapshots: fix flaky TestMetastore https://logs.openlabtesting.org/logs/62/3962/35a8e6e589eb37a73f94cdbd5c8d7938b2b04140/check/containerd-build-arm64/de237af/logs/make_test.txt --- FAIL: TestMetastore (18.27s) --- FAIL: TestMetastore/GetInfo (13.91s) metastore_test.go:242: assertion failed: --- expected +++ info {snapshots.Info}.Created: -: s"0001-01-01 00:00:00 +0000 UTC" +: s"2020-01-15 14:15:38.71882571 +0000 UTC" {snapshots.Info}.Updated: -: s"0001-01-01 00:00:00 +0000 UTC" +: s"2020-01-15 14:15:38.71882571 +0000 UTC" : on key committed-1 Signed-off-by: Shengjing Zhu --- snapshots/storage/metastore_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshots/storage/metastore_test.go b/snapshots/storage/metastore_test.go index f5c70191e..a2b7e4ca6 100644 --- a/snapshots/storage/metastore_test.go +++ b/snapshots/storage/metastore_test.go @@ -261,7 +261,7 @@ var cmpSnapshotInfo = cmp.FilterPath( // actual value should be within a few seconds of now now := time.Now() delta := now.Sub(actual) - threshold := 10 * time.Second + threshold := 30 * time.Second return delta > -threshold && delta < threshold }))