From 1f1e4fcf15c168537378d387c42004a78eec607d Mon Sep 17 00:00:00 2001 From: Tom Deseyn Date: Wed, 16 Oct 2024 17:21:25 +0200 Subject: [PATCH] Don't skip if we need no extensions. --- test/Tmds.Ssh.Tests/SftpClientTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Tmds.Ssh.Tests/SftpClientTests.cs b/test/Tmds.Ssh.Tests/SftpClientTests.cs index 77529cc..f6d642b 100644 --- a/test/Tmds.Ssh.Tests/SftpClientTests.cs +++ b/test/Tmds.Ssh.Tests/SftpClientTests.cs @@ -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."); }