Skip to content

test: keep binding lease fixtures ahead of the clock - #407

Merged
AVIDS2 merged 1 commit into
AVIDS2:mainfrom
ruan-cat:test/binding-lease-relative-expiry
Nov 27, 2026
Merged

AVIDS2 merged 1 commit into
AVIDS2:mainfrom
ruan-cat:test/binding-lease-relative-expiry

Conversation

@ruan-cat

Copy link
Copy Markdown
Contributor

Summary

  • Binding receipt tests from feat(binding): add remote and lease diagnostics #347 hardcoded expiresAt as 2026-11-20T00:05:00.000Z and expected state: active.
  • receipt() marks a handle expired when that timestamp is not after Date.now(). After 2026-11-20 those assertions fail on every full CI run. PR fix(cli): print topic-key flags in memory store help #406's macOS job failed on these two tests; its help tests passed. Ubuntu and Windows were cancelled by fail-fast.
  • Fixtures now use now plus 30 days, the same window as DEFAULT_MCP_BINDING_TTL_MS. The unit test also covers an already-past expiresAt.

Test plan

  • npm test -- tests/server/request-context.test.ts tests/server/session-start-home-and-hydrate.test.ts (2 files, 7 tests passed)

receipt() compares expiresAt with the wall clock. The 2026-11-20 literals from AVIDS2#347 are now in the past, so active assertions fail on every full CI run.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ruan-cat

Copy link
Copy Markdown
Contributor Author

@AVIDS2 Please merge this PR first, then merge #406.

These two PRs do not depend on each other in code. This one only updates the lease-fixture clock, and #406 only updates CLI help text. CI does have an order: #406 checks out a merge with current main, and main still has the expired 2026-11-20 fixture, so #406 stays red until this PR is on main and that workflow runs again.

This PR's workflow is already green. I would appreciate it if you could merge this one, then #406, as soon as you can.

@AVIDS2
AVIDS2 merged commit d9d1c28 into AVIDS2:main Nov 27, 2026
7 checks passed
@AVIDS2

AVIDS2 commented Nov 27, 2026

Copy link
Copy Markdown
Owner

已审查并整合到 #411,保留原贡献提交。采用相对当前时钟的 expiry,并保留 expired 分支覆盖;与 #410 的固定年份 workaround 冲突时优先采用本 PR。相关绑定测试与本地全量回归通过,随 1.10.5 交付。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants