Race condition in wallet during handling `exit` API method
On CI was noticed random fail with closing wallet: https://gitlab.syncad.com/hive/hive/-/jobs/391432
Following error was returned...
E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
...and it doesn't explain a lot, but StackOverflow does: https://stackoverflow.com/a/16575064. It means that some error occurred on cli_wallet side and TestTools received empty response.
After investigation of exit
implementation we think, that wallet is closed too early, before sending response. Ask @bwrona for details. He already preinvestigated this problem and above description is my (@pbatko) paraphrase of his explanation.