Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.google.common.util.concurrent.ListeningScheduledExecutorService;
import org.apache.commons.lang3.StringUtils;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mockito.InOrder;

Expand Down Expand Up @@ -57,6 +58,13 @@

public class PipeProcessorSubtaskWorkerTest {

@BeforeClass
public static void initializeSubtaskMock() {
// Mockito/Byte Buddy initialization can be slow in a fresh CI fork. Keep that class loading
// outside the test timeouts so they measure worker notifications instead of mock startup.
mock(PipeProcessorSubtask.class);
}

@Test(timeout = 30000)
public void testOneHundredWaitingPipesDoNotWaitForWorkerPolling() throws Exception {
final CommonConfig config = CommonDescriptor.getInstance().getConfig();
Expand Down
Loading