-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
developmentStandard developmentStandard developmentr&d:polykey:core activity 4End to End Networking behind Consumer NAT DevicesEnd to End Networking behind Consumer NAT Devices
Description
Specification
While working on #720 I was re-enabling disabled tests. One of them can pull a cloned vault at tests/vaults/VaultManager.test.ts:932 was failing intermittently. After some digging I found that it was caused by external connections and RPC requests being made to the test NodeConnectionManager being used within the test.
There are two problems with this.
NodeConnectionManagerswithin tests should not be starting or receiving any connections during the test. This is just to maintain test isolation since test failures should ideally be directly related to what the test is checking. This would depend on AllowNodeManagerto start lazily without network entry procedure #461 being completed and then updating all relevant tests.- The error causing the test to fail is an RPC error for missing a handler. This shouldn't be causing the test to fail since this error should only be thrown back through the RPC call being made. I'll have to find out why it's causing the test to fail since it's very likely a bug. Unless there's some weird interaction where our test
NodeConnectionManageris attempting theRPCcall to aRPCServerthat doesn't have the handler? Needs more digging.
Additional context
- Related: General vaults review and fixes #720
- Related by Allow
NodeManagerto start lazily without network entry procedure #461
Tasks
- Ensure all tests
PolykeyAgents andNodeConnectionManagers don't attempt to interact with the wider mainnet while testing by starting with network entry disabled. - Dig into why the
RPCerror is causing the test to fail and fix any bug that may be revealed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard developmentr&d:polykey:core activity 4End to End Networking behind Consumer NAT DevicesEnd to End Networking behind Consumer NAT Devices
