mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-10 08:41:13 +00:00
fix(pairing): allow emulator ws setup urls
This commit is contained in:
@@ -229,6 +229,19 @@ describe("registerQrCli", () => {
|
||||
expect(output).toContain("gateway.tailscale.mode=serve");
|
||||
});
|
||||
|
||||
it("allows android emulator cleartext override urls", async () => {
|
||||
loadConfig.mockReturnValue({
|
||||
gateway: {
|
||||
bind: "loopback",
|
||||
auth: { mode: "token", token: "tok" },
|
||||
},
|
||||
});
|
||||
|
||||
await runQr(["--setup-code-only", "--url", "ws://10.0.2.2:18789"]);
|
||||
|
||||
expectLoggedSetupCode("ws://10.0.2.2:18789");
|
||||
});
|
||||
|
||||
it("accepts --token override when config has no auth", async () => {
|
||||
loadConfig.mockReturnValue({
|
||||
gateway: {
|
||||
|
||||
Reference in New Issue
Block a user