Skip to content

Commit

Permalink
LPS-110691 wiki-test: Deflake Search tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arboliveira authored and brianchandotcom committed Apr 16, 2020
1 parent 65cb04f commit e145c48
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.liferay.portal.kernel.test.util.UserTestUtil;
import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.StringUtil;
import com.liferay.portal.search.test.util.SearchTestRule;
import com.liferay.portal.test.rule.Inject;
import com.liferay.portal.test.rule.LiferayIntegrationTestRule;
import com.liferay.wiki.model.WikiNode;
Expand Down Expand Up @@ -303,6 +304,9 @@ public void testSearchIncludeAttachment() throws Exception {
Assert.assertEquals(2, _searchCount(title, true));
}

@Rule
public SearchTestRule searchTestRule = new SearchTestRule();

protected void addWikiNode() throws Exception {
if (_group == null) {
_group = GroupTestUtil.addGroup();
Expand Down

0 comments on commit e145c48

Please sign in to comment.