8000 working on reproducing #261 by Aaronontheweb · Pull Request #265 · akkadotnet/HOCON · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

working on reproducing #261 #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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
0