Commit 4aa1e659 authored by Noel Alonso's avatar Noel Alonso
Browse files

Aumenta tiempo de espera en tests

parent d2154252
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -330,7 +330,9 @@ public class CategoryCommandHandlerTest extends KafkaBaseIntegrationTest {
		// Envía created para meterlo en el stream y lo saca de la cola
		CategoryCreatedEvent categoryCreatedEvent = CategoryDataUtil.getCategoryCreatedEvent(code + "7");
		kafkaTemplate.send(category_topic, categoryCreatedEvent.getAggregateId(), categoryCreatedEvent);
		blockingQueue.poll(10, TimeUnit.SECONDS);
		blockingQueue.poll(30, TimeUnit.SECONDS);

		Thread.sleep(8000);

		PrepareRollbackEvent event = CategoryDataUtil.getPrepareRollbackEvent(code + "7");

+3 −1
Original line number Diff line number Diff line
@@ -376,7 +376,9 @@ public class ThemeInspireCommandHandlerTest extends KafkaBaseIntegrationTest {
		ThemeInspireCreatedEvent themeInspireCreatedEvent = ThemeInspireDataUtil
				.getThemeInspireCreatedEvent(code + "7");
		kafkaTemplate.send(theme_inspire_topic, themeInspireCreatedEvent.getAggregateId(), themeInspireCreatedEvent);
		blockingQueue.poll(10, TimeUnit.SECONDS);
		blockingQueue.poll(30, TimeUnit.SECONDS);

		Thread.sleep(8000);

		PrepareRollbackEvent event = ThemeInspireDataUtil.getPrepareRollbackEvent(code + "7");