SEBWIN-596: Fixed reverting for normal session.
This commit is contained in:
parent
cb3cee7e4e
commit
4bb46c0d7a
2 changed files with 2 additions and 1 deletions
SafeExamBrowser.Runtime.UnitTests/Operations
SafeExamBrowser.Runtime/Operations
|
@ -594,6 +594,7 @@ namespace SafeExamBrowser.Runtime.UnitTests.Operations
|
|||
public void Revert_MustDisconnectFromServerWhenSessionRunning()
|
||||
{
|
||||
context.Current.Settings.SessionMode = SessionMode.Server;
|
||||
context.Next = default;
|
||||
server.Setup(s => s.Disconnect()).Returns(new ServerResponse(true));
|
||||
|
||||
var result = sut.Revert();
|
||||
|
|
|
@ -122,7 +122,7 @@ namespace SafeExamBrowser.Runtime.Operations
|
|||
{
|
||||
var result = OperationResult.Success;
|
||||
|
||||
if (Context.Current?.Settings.SessionMode == SessionMode.Server || Context.Next.Settings.SessionMode == SessionMode.Server)
|
||||
if (Context.Current?.Settings.SessionMode == SessionMode.Server || Context.Next?.Settings.SessionMode == SessionMode.Server)
|
||||
{
|
||||
logger.Info("Finalizing server...");
|
||||
StatusChanged?.Invoke(TextKey.OperationStatus_FinalizeServer);
|
||||
|
|
Loading…
Add table
Reference in a new issue