Skip to content
Snippets Groups Projects
Commit 2d7bdbc5 authored by Egor Ivkov's avatar Egor Ivkov
Browse files

fix: python test for prohibited space

parent c711a966
No related branches found
No related tags found
No related merge requests found
Pipeline #17967 passed
......@@ -81,9 +81,17 @@ def test_cas_errors(instance: Instance):
+ f"raft index {index-1} is compacted at {index}",
)
# Prohibited space
# Prohibited spaces
with pytest.raises(TarantoolError) as e5:
instance.cas("insert", "_picodata_space", [0], range=(0, 0))
instance.cas(
"insert",
"_picodata_space",
[0],
range=(
dict(kind="included", value=0),
dict(kind="included", value=0),
),
)
assert e5.value.args == (
"ER_PROC_C",
"compare-and-swap request failed: space _picodata_space is prohibited for use "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment