-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: resolve node delete test failures #865
Conversation
Signed-off-by: Nathan Klick <[email protected]>
@@ -214,18 +214,20 @@ export class AccountManager { | |||
* @returns a node client that can be used to call transactions | |||
*/ | |||
async _getNodeClient (namespace: string, networkNodeServicesMap: Map<string, NetworkNodeServices>, operatorId: string, | |||
operatorKey: string, useFirstNodeOnly = true) { | |||
operatorKey: string, useSecondNodeOnly = true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if they do a solo node delete
but then delete the second node?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, I'm running locally with the new lower docker CPU and RAM settings, and the delete is failing before it gets to the delete subcommand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a terrible trade off at the moment based on how and when this client is instantiated. Right now all the tests only delete the first node.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you added code to help a test case pass?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a hacky fix until we untangle some other issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't it have been easier to just change the test case to not delete node1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you added code to help a test case pass?
No not exactly, it's also to provide some relief due to SDK Client issues.
Signed-off-by: Nathan Klick <[email protected]>
37468ae
to
cc48bf1
Compare
Description
This pull request changes the following:
_getNodeClient
method to use the second node only by default.Related Issues