fix check for expected error on havenod shut down

This commit is contained in:
woodser 2023-04-07 18:09:30 -04:00
parent afc390e9cc
commit 5f5bf2b3e2

View File

@ -2792,7 +2792,7 @@ async function releaseHavenoProcess(havenod: HavenoClient, deleteAppDir?: boolea
try {
await havenod.shutdownServer();
} catch (err: any) {
assert.equal(err.message, OFFLINE_ERR_MSG);
assert(err.message.indexOf(OFFLINE_ERR_MSG) >= 0, "Unexpected error shutting down server: " + err.message);
}
if (deleteAppDir) deleteHavenoInstance(havenod);
}