fix tests

This commit is contained in:
nicolas.dorier 2020-01-15 00:00:36 +09:00
parent 05223c1a5f
commit 628d0bb690
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
3 changed files with 5 additions and 1 deletions

View File

@ -57,7 +57,7 @@ namespace BTCPayServer.Tests
.IsType<ViewResult>(manageController.AddU2FDevice("testdevice")).Model); .IsType<ViewResult>(manageController.AddU2FDevice("testdevice")).Model);
Assert.NotEmpty(addDeviceVM.Challenge); Assert.NotEmpty(addDeviceVM.Challenge);
Assert.Equal(addDeviceVM.Name, "testdevice"); Assert.Equal("testdevice", addDeviceVM.Name);
Assert.NotEmpty(addDeviceVM.Version); Assert.NotEmpty(addDeviceVM.Version);
Assert.Null(addDeviceVM.DeviceResponse); Assert.Null(addDeviceVM.DeviceResponse);

View File

@ -79,7 +79,10 @@ namespace BTCPayServer
} }
if (!Network.Consensus.SupportSegwit) if (!Network.Consensus.SupportSegwit)
{
hintedLabels.Add("legacy"); hintedLabels.Add("legacy");
str = str.Replace("-[p2sh]", string.Empty, StringComparison.OrdinalIgnoreCase);
}
try try
{ {

View File

@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Misc", "Misc", "{29290EC7-0
Build\Common.csproj = Build\Common.csproj Build\Common.csproj = Build\Common.csproj
.circleci\config.yml = .circleci\config.yml .circleci\config.yml = .circleci\config.yml
docker-entrypoint.sh = docker-entrypoint.sh docker-entrypoint.sh = docker-entrypoint.sh
.circleci\run-tests.sh = .circleci\run-tests.sh
Build\Version.csproj = Build\Version.csproj Build\Version.csproj = Build\Version.csproj
EndProjectSection EndProjectSection
EndProject EndProject