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.
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 returnsnull
if there is results in that structure. The unit test should check first the data type before applying sort function.