Skip to content
Snippets Groups Projects
Commit 769b6119 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

test: support other kinds of call results

parent 110f2057
No related branches found
No related tags found
1 merge request!361Test/sharding is failsafe
...@@ -143,9 +143,9 @@ def normalize_net_box_result(func): ...@@ -143,9 +143,9 @@ def normalize_net_box_result(func):
match result.data: match result.data:
case []: case []:
return None return None
case [x]: case [x] | [x, None]:
return x return x
case [None, str(err)]: case [None, err]:
raise ReturnError(err) raise ReturnError(err)
case [*args]: case [*args]:
raise MalformedAPI(*args) raise MalformedAPI(*args)
......
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