Skip to content

Don't dispose channel when completing SshCommand #163

Don't dispose channel when completing SshCommand

Don't dispose channel when completing SshCommand #163

Triggered via pull request February 5, 2025 19:39
Status Failure
Total duration 9m 44s
Artifacts 1

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
EndExecute_ChannelClosed_ShouldDisposeChannelSession
Initialization method Renci.SshNet.Tests.Classes.SshCommand_EndExecute.Init threw exception. Moq.MockException: ISession.CreateChannelSession() invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup..
EndExecute_ChannelOpen_ShouldSendEofAndCloseAndDisposeChannelSession
Initialization method Renci.SshNet.Tests.Classes.SshCommand_EndExecute.Init threw exception. Moq.MockException: ISession.CreateChannelSession() invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup..
EndExecuteShouldHaveThrownArgumentNullException
Initialization method Renci.SshNet.Tests.Classes.SshCommandTest_EndExecute_AsyncResultIsNull.Init threw exception. Moq.MockException: ISession.CreateChannelSession() invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup..
ChannelSessionShouldBeDisposedOnce: test/Renci.SshNet.Tests/Classes/SshCommandTest_EndExecute_ChannelOpen.cs#L87
Test method Renci.SshNet.Tests.Classes.SshCommandTest_EndExecute_ChannelOpen.ChannelSessionShouldBeDisposedOnce threw exception: Moq.MockException: Expected invocation on the mock once, but was 0 times: p => p.Dispose() Performed invocations: Mock<IChannelSession:87> (p): IChannel.add_DataReceived(EventHandler<ChannelDataEventArgs>) IChannel.add_ExtendedDataReceived(EventHandler<ChannelExtendedDataEventArgs>) IChannel.add_RequestReceived(EventHandler<ChannelRequestEventArgs>) IChannel.add_Closed(EventHandler<ChannelEventArgs>) IChannelSession.Open() IChannelSession.SendExecRequest("11013713") IChannel.remove_DataReceived(EventHandler<ChannelDataEventArgs>) IChannel.remove_ExtendedDataReceived(EventHandler<ChannelExtendedDataEventArgs>) IChannel.remove_RequestReceived(EventHandler<ChannelRequestEventArgs>) IChannel.remove_Closed(EventHandler<ChannelEventArgs>)
Linux
Process completed with exit code 1.
EndExecute_ChannelClosed_ShouldDisposeChannelSession
Initialization method Renci.SshNet.Tests.Classes.SshCommand_EndExecute.Init threw exception. Moq.MockException: ISession.CreateChannelSession() invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup..
EndExecute_ChannelOpen_ShouldSendEofAndCloseAndDisposeChannelSession
Initialization method Renci.SshNet.Tests.Classes.SshCommand_EndExecute.Init threw exception. Moq.MockException: ISession.CreateChannelSession() invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup..
EndExecuteShouldHaveThrownArgumentNullException
Initialization method Renci.SshNet.Tests.Classes.SshCommandTest_EndExecute_AsyncResultIsNull.Init threw exception. Moq.MockException: ISession.CreateChannelSession() invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup..
ChannelSessionShouldBeDisposedOnce: test/Renci.SshNet.Tests/Classes/SshCommandTest_EndExecute_ChannelOpen.cs#L87
Test method Renci.SshNet.Tests.Classes.SshCommandTest_EndExecute_ChannelOpen.ChannelSessionShouldBeDisposedOnce threw exception: Moq.MockException: Expected invocation on the mock once, but was 0 times: p => p.Dispose() Performed invocations: Mock<IChannelSession:87> (p): IChannel.add_DataReceived(EventHandler<ChannelDataEventArgs>) IChannel.add_ExtendedDataReceived(EventHandler<ChannelExtendedDataEventArgs>) IChannel.add_RequestReceived(EventHandler<ChannelRequestEventArgs>) IChannel.add_Closed(EventHandler<ChannelEventArgs>) IChannelSession.Open() IChannelSession.SendExecRequest("1828356655") IChannel.remove_DataReceived(EventHandler<ChannelDataEventArgs>) IChannel.remove_ExtendedDataReceived(EventHandler<ChannelExtendedDataEventArgs>) IChannel.remove_RequestReceived(EventHandler<ChannelRequestEventArgs>) IChannel.remove_Closed(EventHandler<ChannelEventArgs>)
Windows
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
NuGet Package
2.4 MB