concurrently build config

This commit is contained in:
Denis Mishin 2023-11-01 20:26:09 -04:00
parent e85611b7d0
commit 6dea25e0a2
5 changed files with 158 additions and 99 deletions

View file

@ -65,7 +65,7 @@ func TestConfigSource(t *testing.T) {
OutboundPort: outboundPort,
Options: base,
})
src := NewConfigSource(ctx, baseSource, func(_ context.Context, cfg *config.Config) {
src := NewConfigSource(ctx, baseSource, EnableConfigValidation(true), func(_ context.Context, cfg *config.Config) {
cfgs <- cfg
})
cfgs <- src.GetConfig()