Skip to content

Commit

Permalink
Merge pull request #19483 from k8s-infra-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-19473-to-release-3.6

[release-3.6] Fix flaky `TestLeaseKeepAliveOneSecond`
  • Loading branch information
ahrtr authored Feb 25, 2025
2 parents 22f450a + 6921983 commit b9d33a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/clientv3/lease/lease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ func TestLeaseKeepAlive(t *testing.T) {
}
}

func TestLeaseKeepAliveOneSecond(t *testing.T) {
func TestLeaseKeepAliveSeconds(t *testing.T) {
integration2.BeforeTest(t)

clus := integration2.NewCluster(t, &integration2.ClusterConfig{Size: 1})
defer clus.Terminate(t)

cli := clus.Client(0)

resp, err := cli.Grant(context.Background(), 1)
resp, err := cli.Grant(context.Background(), 3)
if err != nil {
t.Errorf("failed to create lease %v", err)
}
Expand All @@ -208,7 +208,7 @@ func TestLeaseKeepAliveOneSecond(t *testing.T) {

for i := 0; i < 3; i++ {
if _, ok := <-rc; !ok {
t.Errorf("chan is closed, want not closed")
t.Errorf("[%d] chan is closed, want not closed", i)
}
}
}
Expand Down

0 comments on commit b9d33a2

Please sign in to comment.