package app import ( "testing" "hyapp/services/activity-service/internal/config" ) func TestRoomOutboxConsumerConfigSerializesCompositeProjection(t *testing.T) { cfg := config.Default().RocketMQ cfg.RoomOutbox.ConsumerGroup = "activity-room-outbox-test" consumerConfig := roomOutboxConsumerConfig(cfg) if consumerConfig.ConsumeGoroutines != 1 { t.Fatalf("room outbox consume goroutines = %d, want 1", consumerConfig.ConsumeGoroutines) } if consumerConfig.GroupName != cfg.RoomOutbox.ConsumerGroup { t.Fatalf("room outbox group = %q, want %q", consumerConfig.GroupName, cfg.RoomOutbox.ConsumerGroup) } }