xwiki/xwiki-platform — comment on commit 35a4e5795ae0fd7ea593ca919a92dce4a1ca03e3
File:  line 0
By mflorea:

Sergiu, I'm afraid your commit causes unit tests to take *very* long. For instance, xwiki-platform-oldcore unit tests took 53s on branch stable-3.5.x (agent-2) and *11 minutes* on master (agent-1). I have the same problem locally. The issue is that since you added this listener for each test method we have this dependency chain:

XWikiTest -> XWikiHibernateBaseStore -> LoggerManager -> ObservationManager -> csrf-token-invalidator -> CSRFToken

and

byte[] seed = this.random.generateSeed(TOKEN_LENGTH);

can take up to 30s and even more. Please fix this ASAP. Thanks.