|
|
@@ -571,6 +571,12 @@ class TestClient(object): |
|
|
|
ctx.finalize() |
|
|
|
ctx.insert(b"# this is super long" * 100) |
|
|
|
|
|
|
|
# override _max_data_after_send to trigger ValueError on a |
|
|
|
# long nonterminated line |
|
|
|
ctx._max_data_after_send = 1000 |
|
|
|
with assert_raises(ValueError): |
|
|
|
ctx.insert(b"# this is super long" * 100) |
|
|
|
|
|
|
|
with assert_raises(ClientError): |
|
|
|
with client.stream_insert_context("/context/test", |
|
|
|
1000, 2000) as ctx: |
|
|
|