Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Sep 5, 2024
1 parent fb5a0c9 commit 21d5db8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions NAPS2.Escl/NAPS2.Escl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<PackageReference Include="Polyfill" Version="4.9.0" PrivateAssets="all" />
<PackageReference Include="StandardSocketsHttpHandler" Version="2.2.0.8" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Sdk.Tests/Remoting/FallbackScanServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace NAPS2.Sdk.Tests.Remoting;

public class FallbackScanServerTests(ITestOutputHelper testOutputHelper) : ScanServerTestsBase(testOutputHelper,
EsclSecurityPolicy.None, new X509Certificate2(BinaryResources.testcert))
EsclSecurityPolicy.None, X509CertificateLoader.LoadPkcs12(BinaryResources.testcert, null))
{
[Fact(Timeout = TIMEOUT)]
public async Task ScanFallbackFromHttpsToHttp()
Expand Down
4 changes: 2 additions & 2 deletions NAPS2.Sdk.Tests/Remoting/ManualIpScanServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

namespace NAPS2.Sdk.Tests.Remoting;

public class ManualIpScanServerTests(ITestOutputHelper testOutputHelper)
: ScanServerTestsBase(testOutputHelper, EsclSecurityPolicy.None, new X509Certificate2(BinaryResources.testcert))
public class ManualIpScanServerTests(ITestOutputHelper testOutputHelper) : ScanServerTestsBase(testOutputHelper,
EsclSecurityPolicy.None, X509CertificateLoader.LoadPkcs12(BinaryResources.testcert, null))
{
[Fact(Timeout = TIMEOUT)]
public async Task ScanHttpIpv4()
Expand Down
2 changes: 1 addition & 1 deletion NAPS2.Sdk.Tests/Remoting/TlsScanServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace NAPS2.Sdk.Tests.Remoting;

public class TlsScanServerTests(ITestOutputHelper testOutputHelper) : ScanServerTestsBase(testOutputHelper,
EsclSecurityPolicy.RequireHttps, new X509Certificate2(BinaryResources.testcert))
EsclSecurityPolicy.RequireHttps, X509CertificateLoader.LoadPkcs12(BinaryResources.testcert, null))
{
[Fact(Timeout = TIMEOUT)]
public async Task FindDevice()
Expand Down

0 comments on commit 21d5db8

Please sign in to comment.