From 2e09e54b38750cceb350e2505fabd0082c4b78d8 Mon Sep 17 00:00:00 2001 From: He Weiwei Date: Thu, 10 Dec 2020 11:23:38 +0000 Subject: [PATCH] test(quota): increase sleep time to fix fail of test Increase the sleep time to fix the fail in TestGetReservedResources of quota Signed-off-by: He Weiwei --- src/controller/quota/controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/quota/controller_test.go b/src/controller/quota/controller_test.go index 474953ded..67605d52b 100644 --- a/src/controller/quota/controller_test.go +++ b/src/controller/quota/controller_test.go @@ -85,7 +85,7 @@ func (suite *ControllerTestSuite) TestGetReservedResources() { suite.Len(resources, 1) } - time.Sleep(reservedExpiration) + time.Sleep(reservedExpiration * 2) { resources, err := ctl.getReservedResources(context.TODO(), reference, referenceID)