Skip to content

Commit 86ee1b0

Browse files
juliusmarmingecodex
andcommitted
Avoid raw JSON in relay diagnostics test
Co-authored-by: codex <[email protected]>
1 parent de7427d commit 86ee1b0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎infra/relay/src/environments/EnvironmentConnector.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,9 @@ describe("EnvironmentConnector", () => {
478478
"relay.authorization.resolved_ws_base_url.protocol": "wss:",
479479
"relay.authorization.resolved_ws_base_url.hostname": "env.example.test",
480480
});
481-
const serializedAttributes = JSON.stringify(resolutionAttributes);
481+
const serializedAttributes = Object.entries(resolutionAttributes)
482+
.flatMap(([key, value]) => [key, String(value)])
483+
.join("\n");
482484
for (const secret of [
483485
"attacker-user",
484486
"attacker-password",

0 commit comments

Comments
 (0)