Skip to content

Commit a2a3953

Browse files
authored
Small fix on testing project to assign port correctly (#186)
1 parent 9c8345c commit a2a3953

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

dotnet/Trinsic.Tests/Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public async Task TestWalletService()
5454
var walletService = new WalletService(new ServerConfig
5555
{
5656
Endpoint = Environment.GetEnvironmentVariable("TEST_SERVER_ENDPOINT") ?? "localhost",
57-
Port = int.TryParse(Environment.GetEnvironmentVariable("TEST_SERVER_ENDPOINT"), out var port) ? port : 5000,
57+
Port = int.TryParse(Environment.GetEnvironmentVariable("TEST_SERVER_PORT"), out var port) ? port : 5000,
5858
UseTls = bool.TryParse(Environment.GetEnvironmentVariable("TEST_SERVER_USE_TLS"), out var useTls) ? useTls : false
5959
});
6060

dotnet/Trinsic.Tests/Trinsic.Tests.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
1212
<StartAction>Project</StartAction>
1313
<ExternalConsole>true</ExternalConsole>
14-
<EnvironmentVariables>
15-
<Variable name="TEST_SERVER_ENDPOINT" value="localhost" />
16-
<Variable name="TEST_SERVER_PORT" value="5000" />
17-
<Variable name="TEST_SERVER_USE_TLS" value="false" />
18-
</EnvironmentVariables>
1914
</PropertyGroup>
2015
<ItemGroup>
2116
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />

0 commit comments

Comments
 (0)