Skip to content

Commit

Permalink
LPS-205346 The integration test also suffers from this {none} in pass…
Browse files Browse the repository at this point in the history
…word.
  • Loading branch information
dantewang committed Jan 10, 2024
1 parent 4882424 commit 77f28a3
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package com.liferay.portal.benchmark.test;

import com.liferay.arquillian.extension.junit.bridge.junit.Arquillian;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.benchmark.test.util.Login;

import com.liferay.portal.benchmark.test.util.Statistics;
Expand Down Expand Up @@ -60,8 +61,15 @@ public void testExecute() throws Exception {

user = _userLocalService.updateUser(user);

String password = user.getPassword();

if (password.startsWith(StringPool.OPEN_CURLY_BRACE)) {
password = password.substring(
password.indexOf(StringPool.CLOSE_CURLY_BRACE) + 1);
}

Login login = new Login(
"127.0.0.1", 8080, user.getEmailAddress(), user.getPassword(),
"127.0.0.1", 8080, user.getEmailAddress(), password,
new Statistics(1));

login.execute();
Expand Down

0 comments on commit 77f28a3

Please sign in to comment.