From 19be8476248cb2a67a178f8519f3579e8cca877f Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 8 Jul 2022 16:30:52 +0900 Subject: [PATCH] Do not use Renci.SSH in tests --- BTCPayServer.Tests/SeleniumTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 27099c317..2033a81d0 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -1011,7 +1011,7 @@ namespace BTCPayServer.Tests var actualSig = headers["BTCPay-Sig"].First(); var bytes = await request.Request.Body.ReadBytesAsync((int)headers.ContentLength.Value); var expectedSig = - $"sha256={Encoders.Hex.EncodeData(new HMACSHA256(Encoding.UTF8.GetBytes("HelloWorld")).ComputeHash(bytes))}"; + $"sha256={Encoders.Hex.EncodeData(NBitcoin.Crypto.Hashes.HMACSHA256(Encoding.UTF8.GetBytes("HelloWorld"), bytes))}"; Assert.Equal(expectedSig, actualSig); request.Response.StatusCode = 200; server.Done();