fix(cluster-infrastructure): resolve ClusterInfrastructure-002..006 — options validation, DI registration, down-if-alone
This commit is contained in:
@@ -15,6 +15,15 @@ public class ClusterOptionsTests
|
||||
Assert.Equal(TimeSpan.FromSeconds(2), options.HeartbeatInterval);
|
||||
Assert.Equal(TimeSpan.FromSeconds(10), options.FailureDetectionThreshold);
|
||||
Assert.Equal(1, options.MinNrOfMembers);
|
||||
Assert.True(options.DownIfAlone);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DownIfAlone_CanBeSet()
|
||||
{
|
||||
var options = new ClusterOptions { DownIfAlone = false };
|
||||
|
||||
Assert.False(options.DownIfAlone);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user