File tree 1 file changed +3
-3
lines changed
tests/integration/clientv3/lease
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,15 +189,15 @@ func TestLeaseKeepAlive(t *testing.T) {
189
189
}
190
190
}
191
191
192
- func TestLeaseKeepAliveOneSecond (t * testing.T ) {
192
+ func TestLeaseKeepAliveSeconds (t * testing.T ) {
193
193
integration2 .BeforeTest (t )
194
194
195
195
clus := integration2 .NewCluster (t , & integration2.ClusterConfig {Size : 1 })
196
196
defer clus .Terminate (t )
197
197
198
198
cli := clus .Client (0 )
199
199
200
- resp , err := cli .Grant (context .Background (), 1 )
200
+ resp , err := cli .Grant (context .Background (), 3 )
201
201
if err != nil {
202
202
t .Errorf ("failed to create lease %v" , err )
203
203
}
@@ -208,7 +208,7 @@ func TestLeaseKeepAliveOneSecond(t *testing.T) {
208
208
209
209
for i := 0 ; i < 3 ; i ++ {
210
210
if _ , ok := <- rc ; ! ok {
211
- t .Errorf ("chan is closed, want not closed" )
211
+ t .Errorf ("[%d] chan is closed, want not closed" , i )
212
212
}
213
213
}
214
214
}
You can’t perform that action at this time.
0 commit comments