mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
tests: isolate node-host gateway env
This commit is contained in:
@@ -76,6 +76,7 @@ describe("resolveNodeHostGatewayCredentials", () => {
|
||||
await withEnvAsync(
|
||||
{
|
||||
OPENCLAW_GATEWAY_TOKEN: undefined,
|
||||
OPENCLAW_GATEWAY_PASSWORD: undefined,
|
||||
REMOTE_GATEWAY_TOKEN: "token-from-ref",
|
||||
},
|
||||
async () => {
|
||||
@@ -91,6 +92,7 @@ describe("resolveNodeHostGatewayCredentials", () => {
|
||||
await withEnvAsync(
|
||||
{
|
||||
OPENCLAW_GATEWAY_TOKEN: "token-from-env",
|
||||
OPENCLAW_GATEWAY_PASSWORD: undefined,
|
||||
REMOTE_GATEWAY_TOKEN: "token-from-ref",
|
||||
},
|
||||
async () => {
|
||||
@@ -106,6 +108,7 @@ describe("resolveNodeHostGatewayCredentials", () => {
|
||||
await withEnvAsync(
|
||||
{
|
||||
OPENCLAW_GATEWAY_TOKEN: undefined,
|
||||
OPENCLAW_GATEWAY_PASSWORD: undefined,
|
||||
MISSING_REMOTE_GATEWAY_TOKEN: undefined,
|
||||
},
|
||||
async () => {
|
||||
|
||||
Reference in New Issue
Block a user