chore: update
Java CI with Maven / build-and-test (pull_request) Successful in 3m25s

This commit is contained in:
TakahashiNg
2026-04-21 06:19:37 +00:00
parent 0967a4a84c
commit 7cc78bc574
@@ -20,7 +20,7 @@ public class EateryServiceTest {
@Test
@ActivateRequestContext
void testConsumeManagerSignup() {
void testConsumeManagerSignup() throws InterruptedException {
// 1. Chuẩn bị dữ liệu giả lập
ManagerCreate input = new ManagerCreate();
input.id = UUID.randomUUID(); // Giả sử manager ID là 99
@@ -29,6 +29,8 @@ public class EateryServiceTest {
// 2. Đẩy tin nhắn vào channel "manager-in" bằng InMemoryConnector
connector.source("manager-in").send(input);
Thread.sleep(1000);
// 3. Kiểm tra kết quả trong Database
// Lưu ý: Vì xử lý Kafka là bất đồng bộ, đôi khi cần đợi vài miligiây
// nhưng với InMemoryConnector thì thường là tức thì.