dmwm / DBSClient

Apache License 2.0
3 stars 8 forks source link

Check output[key] type before applying sort function #44

Closed vkuznet closed 3 years ago

vkuznet commented 3 years ago

The return data-type in JSON for empty results set, e.g. file_parent_list, can be presented differently. Python server returns empty list ([]), while Go JSON decoder returns null if there is results in that structure. The unit test should check first the data type before applying sort function.