mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-07 23:31:07 +00:00
fix(gateway): restore loopback detail probes and identity fallback (#51087)
Merged via squash.
Prepared head SHA: f8a66ffde2
Co-authored-by: heavenlost <70937055+heavenlost@users.noreply.github.com>
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Reviewed-by: @mbelinky
This commit is contained in:
@@ -76,6 +76,22 @@ describe("runDaemonStatus", () => {
|
||||
expect(printDaemonStatus).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it("forwards require-rpc to daemon status gathering", async () => {
|
||||
await runDaemonStatus({
|
||||
rpc: {},
|
||||
probe: true,
|
||||
requireRpc: true,
|
||||
json: false,
|
||||
});
|
||||
|
||||
expect(gatherDaemonStatus).toHaveBeenCalledWith({
|
||||
rpc: {},
|
||||
probe: true,
|
||||
requireRpc: true,
|
||||
deep: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("rejects require-rpc when probing is disabled", async () => {
|
||||
await expect(
|
||||
runDaemonStatus({
|
||||
|
||||
Reference in New Issue
Block a user