Skip to content

Commit

Permalink
Don't skip if we need no extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds committed Oct 16, 2024
1 parent 9766fae commit 1f1e4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Tmds.Ssh.Tests/SftpClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ public async Task CacheLength()

private void SkipIfExtensionsNotSupported(SftpClient client, SftpExtensions extensions)
{
if ((client.EnabledExtensions & extensions) != extensions)
if (extensions != 0 && (client.EnabledExtensions & extensions) != extensions)
{
throw new SkipException($"The test server does not support the required {extensions & ~client.EnabledExtensions} extensions.");
}
Expand Down

0 comments on commit 1f1e4fc

Please sign in to comment.