This is not a joke :)

Taking EntityFieldTest as an example, which apparently generates 38 passwords, takes more than 3 seconds in that function, other tests might not be as much but still a few.

The upcoming patch sets the log count variable for DUBT tests to 1, which results in the password hash generation taking 14msec instead.

CommentFileSizeAuthor
#1 password-log-count-2154961-1.patch811 bytesBerdir
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Status: Active » Needs review
FileSize
811 bytes
alexpott’s picture

Status: Needs review » Reviewed & tested by the community

Can not see any disadvantages to doing this! Nice find :)

xjm’s picture

catch’s picture

Why not do this for web tests too?

Berdir’s picture

Thought about it but we currently don't have the possibility to do that.

I know there's an issue to add a testing service provider in an issue, but I can't remember which one right now, that would help.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Fair enough. Committed/pushed to 8.x, thanks!

pwolanin’s picture

It roughly looks like inside DrupalKernel::initializeContainer() you could make some tweaks if the environment is "testing"?

pwolanin’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.