Skip to content

Commit

Permalink
add suite threadleak scope and 5 seconds grace for leaking threads
Browse files Browse the repository at this point in the history
  • Loading branch information
msbt committed Mar 10, 2015
1 parent f05d3bf commit 1a70cbf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
package io.crate.test.integration;

import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakLingering;
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope;
import org.apache.lucene.util.AbstractRandomizedTest;
import org.elasticsearch.common.logging.Loggers;
import org.elasticsearch.test.ElasticsearchTestCase;
Expand All @@ -31,7 +33,9 @@
import org.junit.rules.ExpectedException;
import org.mockito.MockitoAnnotations;

@ThreadLeakFilters(filters = ElasticsearchThreadFilter.class)
@ThreadLeakFilters(defaultFilters = true, filters = ElasticsearchThreadFilter.class)
@ThreadLeakScope(ThreadLeakScope.Scope.SUITE)
@ThreadLeakLingering(linger = 5000) // 5 sec lingering
public class CrateUnitTest extends AbstractRandomizedTest {

static {
Expand Down

0 comments on commit 1a70cbf

Please sign in to comment.