upgrade check connections

This commit is contained in:
fyears
2024-07-27 22:58:05 +08:00
parent f2845cdcbf
commit ee4394873b
14 changed files with 79 additions and 28 deletions
+5 -1
View File
@@ -252,12 +252,16 @@ export class FakeFsWebdis extends FakeFs {
const k = await (
await this._fetchCommand("GET", "PING/helloworld")
).json();
return isEqual(k, { PING: "helloworld" });
if (!isEqual(k, { PING: "helloworld" })) {
throw Error(`no correct ping response`);
}
} catch (err: any) {
console.error(err);
callbackFunc?.(err);
return false;
}
return await this.checkConnectCommonOps(callbackFunc);
// return true;
}
async getUserDisplayName(): Promise<string> {