File tree 2 files changed +1
-2
lines changed
DotNext.Tests/Net/Cluster/Consensus/Raft/Http
cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft
2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -448,7 +448,6 @@ public static async Task StandbyMode()
448
448
await GetLocalClusterView ( host3 ) . Readiness . WaitAsync ( DefaultTimeout ) ;
449
449
450
450
// suspend two nodes
451
- False ( await GetLocalClusterView ( host1 ) . EnableStandbyModeAsync ( ) ) ;
452
451
True ( await GetLocalClusterView ( host2 ) . EnableStandbyModeAsync ( ) ) ;
453
452
True ( GetLocalClusterView ( host2 ) . Standby ) ;
454
453
True ( await GetLocalClusterView ( host3 ) . EnableStandbyModeAsync ( ) ) ;
Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ public async ValueTask<bool> EnableStandbyModeAsync(CancellationToken token = de
388
388
ObjectDisposedException . ThrowIf ( IsDisposed , this ) ;
389
389
390
390
RaftState < TMember > currentState ;
391
- if ( ( currentState = state ) is FollowerState < TMember > or CandidateState < TMember > )
391
+ if ( ( currentState = state ) is not StandbyState < TMember > )
392
392
{
393
393
var tokenSource = token . LinkTo ( LifecycleToken ) ;
394
394
var lockTaken = false ;
You can’t perform that action at this time.
0 commit comments