Skip to content

Commit

Permalink
election: update leadership_test.go (tikv#6400)
Browse files Browse the repository at this point in the history
close tikv#6399

fix test code

Signed-off-by: HappyUncle <code4happy@gmail.com>
  • Loading branch information
happy-v587 authored and zeminzhou committed May 8, 2023
1 parent 0fcbf2b commit 76f6bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/election/leadership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func TestLeadership(t *testing.T) {
// Check the lease.
lease1 := leadership1.getLease()
re.NotNil(lease1)
lease2 := leadership1.getLease()
lease2 := leadership2.getLease()
re.NotNil(lease2)

re.True(lease1.IsExpired())
Expand Down

0 comments on commit 76f6bcd

Please sign in to comment.