Skip to content

Commit

Permalink
e2e: TestRenewLease failed due to a shorter acceptableMargin
Browse files Browse the repository at this point in the history
Signed-off-by: iiiceoo <[email protected]>
  • Loading branch information
iiiceoo committed Sep 4, 2023
1 parent f64c1bd commit 91bae36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/subnet/etcd/subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 91bae36

Please sign in to comment.