-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Replace resource expensive bcrypt test with shorter version #1231
Conversation
good idea. |
We don't need to validate that the algorithm works when logrounds has been increased - just that it's able to function correctly when linked and used. Good call. |
Oh, thought - maybe make it |
888b0ed
to
cc65ddf
Compare
@wohali I've added I fixed that, simplified setup (we've been starting and stopping bunch of unused apps and for some reason did it for each test individually) and added the tests descriptions. How does it look for you now? |
Good catch! +1 and go for it. |
@eiri we got a random failure in Jenkins related to encryption after this hit master, can you investigate please? https://builds.apache.org/blue/organizations/jenkins/CouchDB/detail/master/223/pipeline
|
@wohali It's hard to imagine that fixing eunit tests would break API tests. I looked into it and as far as I can see with |
Thanks @eiri, sorry for leaving this request here. I wasn't accusing you of making the mistake :) I'll open a new ticket. Thank you again! |
* Fix the tests * Replace resource expensive bcrypt test with shorter version * Add tests descriptions
Since we are using 3rd party app for
bcrypt
andcouch_passwords: bcrypt/2
is just an interface for it there are no need to test correctness of the lib itself, just the fact that we are using it properly.Test
bcrypt_logRounds_18
is kind of a resource hog, so I suggest to remove it to easy a burden on Travis and Jenkins. This reduces the test runtime on my laptop from 75s to 15s and I suspect the difference for CI will be even greater.