[TESTS] Really fix MultipleAdRealmTests (I think)

Original commit: elastic/x-pack-elasticsearch@dc1eb4eb93
This commit is contained in:
Tim Vernum 2017-05-05 10:44:28 +10:00
parent 9a800cac60
commit 384486d6dd
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ public class MultipleAdRealmTests extends AbstractAdLdapRealmTestCase {
// Pick a secondary realm that has the inverse value for 'loginWithCommonName' compare with the primary realm
final List<RealmConfig> configs = Arrays.stream(RealmConfig.values())
.filter(config -> config.loginWithCommonName != AbstractAdLdapRealmTestCase.realmConfig.loginWithCommonName)
.filter(config -> config.name().startsWith("AD"))
.collect(Collectors.toList());
secondaryRealmConfig = randomFrom(configs);
ESLoggerFactory.getLogger("test")