-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Restructure LCD Tests #1157
Comments
Another problem with the current architecture: #1296 - the LCD send endpoint was broken because our LCD tests run the LCD in-process, and we use |
i "love" viper |
Also I take it back, after talking with Fabo I think it's good to have hard coded snippets in, as it informs the users of the LCD that the interface has changed |
Just profiled this, 76% of the time is spent on generating the key from password. (Bcrypt doing its job as a slow hash) We are making 28 calls to bcrypt. I think we should see if we can reduce this number. I think we should reduce the security parameter of bcrypt for testing, we don't gain much by delaying all test suites for Bcrypt. I recall discussion that we are going to be moving the keys out of go-crypto, so I guess fixing the testing speed is blocked until that gets into the sdk. |
Oh cool - yeah I know how we can reduce this to one or two times! Great analysis to know thanks |
@rigelrozanski this was mostly done? Should we close and follow up with more particular issues about this package, like #1551 |
Yes - will open some new issues |
ref: #1553 |
LCD test has some confusing architecture to it which should be rectified. The current process flow is to globally call a setup function in a TestMain function which affects global variables which are in turn used throughout all the tests. This organization is really confusing to debug, what should be happening is we should remove both the use of the TestMain function and global variables all together, and instead have each Test initialize state from the helper function at the beginning of each test (or for the tests where this is necessary) and have this initialization function pass whatever parameters are necessary back in the function return (replacing the use of global variables).
^ The above change will clear a lot of confusing referencing currently happening in the LCD
We should also:
The text was updated successfully, but these errors were encountered: