Skip to content

test: cover reconnect recovery#21

Open
Lovlace777 wants to merge 1 commit into
Aaromalpm:mainfrom
Lovlace777:lovelace/test-reconnect-recovery
Open

test: cover reconnect recovery#21
Lovlace777 wants to merge 1 commit into
Aaromalpm:mainfrom
Lovlace777:lovelace/test-reconnect-recovery

Conversation

@Lovlace777

Copy link
Copy Markdown

Summary

  • Adds coverage for reconnect room tracking, rejoining tracked rooms, missed-message filtering with since, empty recovery, and missing-user validation.
  • Covers cleanup through leaveRoom and closeRoom, plus the missing-user guard in trackUserRoom.
  • Aligns existing auth middleware assertions with the current error messages so the full test script passes.

Validation

  • npm ci passed.
  • Baseline npm test initially failed with 33 passed and 3 failed authMiddleware message assertions before this change.
  • npm test passed with 46 passed and 0 failed after this change.
  • git diff --check passed with a Windows line-ending warning only.

Notes

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.

test: add tests for reconnect recovery

1 participant