From 91bae362344f15a95e17de4fd3f8fccb6eb4522c Mon Sep 17 00:00:00 2001 From: iiiceoo Date: Mon, 4 Sep 2023 09:37:10 +0800 Subject: [PATCH] e2e: TestRenewLease failed due to a shorter `acceptableMargin` Signed-off-by: iiiceoo --- pkg/subnet/etcd/subnet_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/subnet/etcd/subnet_test.go b/pkg/subnet/etcd/subnet_test.go index 02d2d9343..4c5084aed 100644 --- a/pkg/subnet/etcd/subnet_test.go +++ b/pkg/subnet/etcd/subnet_test.go @@ -440,7 +440,7 @@ func TestRenewLease(t *testing.T) { t.Fatal("RenewLease failed: ", err) } //we expect the new lease to have an expiration date in exactly 24h - acceptableMargin := 5 * time.Second + acceptableMargin := 10 * time.Second expectedExpiration := time.Now().Add(subnetTTL).Round(time.Duration(acceptableMargin)) etcdResp, err := kvApi.Get(ctx, "/coreos.com/network/subnets", etcd.WithPrefix())