Skip to content

Commit b9d33a2

Browse files
authored
Merge pull request #19483 from k8s-infra-cherrypick-robot/cherry-pick-19473-to-release-3.6
[release-3.6] Fix flaky `TestLeaseKeepAliveOneSecond`
2 parents 22f450a + 6921983 commit b9d33a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/clientv3/lease/lease_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ func TestLeaseKeepAlive(t *testing.T) {
189189
}
190190
}
191191

192-
func TestLeaseKeepAliveOneSecond(t *testing.T) {
192+
func TestLeaseKeepAliveSeconds(t *testing.T) {
193193
integration2.BeforeTest(t)
194194

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

198198
cli := clus.Client(0)
199199

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

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

0 commit comments

Comments
 (0)