@@ -571,14 +571,18 @@ describe("loadSettings default gateway URL derivation", () => {
|
571 | 571 | sessionKey: "agent:current:main", |
572 | 572 | lastActiveSessionKey: "agent:current:main", |
573 | 573 | }); |
574 | | -const scopes = Object.keys(scopedSessions); |
575 | | -expect(scopes).toHaveLength(10); |
576 | | -// oldest stale entries should be evicted |
577 | | -expect(scopes).not.toContain("wss://stale-0.example:8443"); |
578 | | -expect(scopes).not.toContain("wss://stale-1.example:8443"); |
579 | | -// newest stale entries and the current gateway should be retained |
580 | | -expect(scopes).toContain("wss://stale-10.example:8443"); |
581 | | -expect(scopes).toContain("wss://gateway.example:8443"); |
| 574 | +expect(Object.keys(scopedSessions)).toEqual([ |
| 575 | +"wss://stale-2.example:8443", |
| 576 | +"wss://stale-3.example:8443", |
| 577 | +"wss://stale-4.example:8443", |
| 578 | +"wss://stale-5.example:8443", |
| 579 | +"wss://stale-6.example:8443", |
| 580 | +"wss://stale-7.example:8443", |
| 581 | +"wss://stale-8.example:8443", |
| 582 | +"wss://stale-9.example:8443", |
| 583 | +"wss://stale-10.example:8443", |
| 584 | +"wss://gateway.example:8443", |
| 585 | +]); |
582 | 586 | }); |
583 | 587 | |
584 | 588 | it("persists local user identity separately from gateway settings", () => { |
|