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
22 changes: 22 additions & 0 deletions src/Hocon.Configuration.Test/ConcurrentImmutablitySpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ public class ConcurrentImmutablitySpec
}
}");

private static Config fb4 = HoconConfigurationFactory.ParseString(@"akka.actor{
deployment{
/harmless{
throughput = 12
}
}
dispatchers{
foo3.test = boz
foo4.test = bez
}
}");

private Config C { get; set; } = fb1;

[Fact]
Expand All @@ -60,6 +72,16 @@ public void ConcurrentConfig_modification_should_be_immutable()
{
C = C.SafeWithFallback(fb3);
}
else if (i % 3 == 0)
{
C = fb2.WithFallback(fb1);
}
else
{
C = C.SafeWithFallback(fb4);
}

var dispatchersConfigs = C.GetObject("akka.actor.dispatchers").Select(x => x.Key).ToList();

var actorConfig = C.GetConfig("akka.actor.deployment./foo");
var dispatcherName = actorConfig.GetString("dispatcher");
Expand Down