mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-08-10 15:30:03 -04:00
improve error handling of 'Selects arbitrator' test
This commit is contained in:
parent
cbedc12d4d
commit
c643392494
1 changed files with 6 additions and 3 deletions
|
@ -2411,9 +2411,12 @@ test("Selects arbitrators which are online, registered, and least used (Test)",
|
|||
|
||||
// cleanup if error
|
||||
if (err) {
|
||||
try { await arbitrator2.unregisterDisputeAgent("arbitrator"); }
|
||||
catch (err) { /*ignore*/ }
|
||||
await releaseHavenoProcess(arbitrator2, true);
|
||||
if (arbitrator2) {
|
||||
try { await arbitrator2.unregisterDisputeAgent("arbitrator"); }
|
||||
catch (err: any) { console.log("Error unregistering arbitrator2: " + err.message); }
|
||||
try { await releaseHavenoProcess(arbitrator2, true); }
|
||||
catch (err: any) { console.log("Error releasing arbitrator2: " + err.message); }
|
||||
}
|
||||
throw err;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue