-
-
Notifications
You must be signed in to change notification settings - Fork 92
Add tests for stats processing #1879
Copy link
Copy link
Closed
Milestone
Description
Implement tests with mock gateways to verify that peer stats are processed as expected.
Things to test:
- new sessions are created once a first stats update comes
- if a session already exists a duplicate is not created
- if a session with state
newalready exists it's changed toconnectedonce stats are received - peer updates for invalid keys are discarded
- [ ] peer updates without an endpoint are discarded(this is done in the gateway handler) - peer updates in an invalid order are discarded
- changing a device public key is handled properly
- upload & download calculations work as expected
- sessions are disconnected once enough time passes since last timestamp
Result: Integration tests for the session manager run in the CI (and can be run manually)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Ready to release