Remove Error message from test console.
MODIFY
WalletWasabi.Tests/UnitTests/PasswordTests.cs
WalletWasabi.Tests/UnitTests/PasswordTests.cs
@@ -6,6 +6,7 @@ using System.Text;
using WalletWasabi.Helpers;
using WalletWasabi.KeyManagement;
using Xunit;
+using WalletWasabi.Logging;
namespace WalletWasabi.Tests.UnitTests
{
@@ -24,7 +25,9 @@ namespace WalletWasabi.Tests.UnitTests
{
var original = pairs.Key;
var desired = pairs.Value;
+ Logger.TurnOff();
var results = PasswordHelper.GetPossiblePasswords(original);
+
var foundCorrectPassword = false;
foreach (var pw in results)
@@ -49,6 +52,7 @@ namespace WalletWasabi.Tests.UnitTests
// Creating a wallet with buggy password.
var keyManager = KeyManager.CreateNew(out _, Guard.Correct(buggy)); // Every wallet was created with Guard.Correct before.
+ Logger.TurnOff();
// Password will be trimmed inside.
PasswordHelper.GetMasterExtKey(keyManager, original, out _);
@@ -90,6 +94,7 @@ namespace WalletWasabi.Tests.UnitTests
Assert.True(PasswordHelper.IsTrimable(original, out original));
+ Logger.TurnOff();
Assert.False(PasswordHelper.TryPassword(keyManager, "falsepassword", out _));
// This should pass
@@ -100,6 +105,7 @@ namespace WalletWasabi.Tests.UnitTests
Assert.True(PasswordHelper.TryPassword(keyManager, original, out string compatiblePassword));
Assert.Equal(buggy, compatiblePassword);
+ Logger.TurnOn();
}
[Fact]

Remove Error message from test console.