mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: use cancel instead of close.
This commit is contained in:
parent
e1ca3b4434
commit
97509833e2
@ -88,8 +88,8 @@ func TestV3StorageQuotaApply(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx, close := context.WithTimeout(context.TODO(), RequestWaitTimeout)
|
ctx, cancel := context.WithTimeout(context.TODO(), RequestWaitTimeout)
|
||||||
defer close()
|
defer cancel()
|
||||||
|
|
||||||
// small quota machine should reject put
|
// small quota machine should reject put
|
||||||
if _, err := kvc0.Put(ctx, &pb.PutRequest{Key: key, Value: smallbuf}); err == nil {
|
if _, err := kvc0.Put(ctx, &pb.PutRequest{Key: key, Value: smallbuf}); err == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user