From 51a70380a1bcd2cc3d4c7cb9d97a9479d5a41911 Mon Sep 17 00:00:00 2001 From: Rafi Shamim Date: Tue, 13 Aug 2024 17:41:17 -0400 Subject: [PATCH] lease: deflake TestLeaseAtLatestVersion Change to a less strict condition for generating an error. Release note: None --- pkg/sql/catalog/lease/lease_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sql/catalog/lease/lease_test.go b/pkg/sql/catalog/lease/lease_test.go index 3d824f4863e1..d4044aec28f0 100644 --- a/pkg/sql/catalog/lease/lease_test.go +++ b/pkg/sql/catalog/lease/lease_test.go @@ -1140,7 +1140,7 @@ func TestLeaseAtLatestVersion(t *testing.T) { LeaseAcquiredEvent: func(desc catalog.Descriptor, _ error) { if desc.GetName() == "kv" { var err error - if desc.GetVersion() != 2 { + if desc.GetVersion() < 2 { err = errors.Errorf("not seeing latest version") } errChan <- err