Skip to content

Commit

Permalink
Small fix on testing project to assign port correctly (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmarkovski committed Nov 5, 2021
1 parent 9c8345c commit a2a3953
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion dotnet/Trinsic.Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public async Task TestWalletService()
var walletService = new WalletService(new ServerConfig
{
Endpoint = Environment.GetEnvironmentVariable("TEST_SERVER_ENDPOINT") ?? "localhost",
Port = int.TryParse(Environment.GetEnvironmentVariable("TEST_SERVER_ENDPOINT"), out var port) ? port : 5000,
Port = int.TryParse(Environment.GetEnvironmentVariable("TEST_SERVER_PORT"), out var port) ? port : 5000,
UseTls = bool.TryParse(Environment.GetEnvironmentVariable("TEST_SERVER_USE_TLS"), out var useTls) ? useTls : false
});

Expand Down
5 changes: 0 additions & 5 deletions dotnet/Trinsic.Tests/Trinsic.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
<StartAction>Project</StartAction>
<ExternalConsole>true</ExternalConsole>
<EnvironmentVariables>
<Variable name="TEST_SERVER_ENDPOINT" value="localhost" />
<Variable name="TEST_SERVER_PORT" value="5000" />
<Variable name="TEST_SERVER_USE_TLS" value="false" />
</EnvironmentVariables>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
Expand Down

0 comments on commit a2a3953

Please sign in to comment.