Skip to content

Commit

Permalink
lease: deflake TestLeaseAtLatestVersion
Browse files Browse the repository at this point in the history
Change to a less strict condition for generating an error.

Release note: None
  • Loading branch information
rafiss committed Aug 13, 2024
1 parent 467aeae commit 51a7038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/catalog/lease/lease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51a7038

Please sign in to comment.