Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
found a way to set pool config enviromentally for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Raffel <mattr@kiva.org>
  • Loading branch information
matt-raffel-kiva committed Aug 8, 2019
1 parent d95b789 commit 991a439
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Tests/Demos/IssueCredentialDemo.cs
Expand Up @@ -26,9 +26,16 @@ public class IssueCredentialDemo

[TestInitialize]
public void Initialize()
{
string file = PoolUtils.GenerateGenesisFile();
_filesCreated.Add(file);
{

string file = Environment.GetEnvironmentVariable("POOL_GENESIS_FILE");
throw new Exception($"environment variable POOL_GENESIS_FILE is {file}");

if (string.IsNullOrEmpty(file))
{
file = PoolUtils.GenerateGenesisFile();
_filesCreated.Add(file);
}

_pool = IndyDotNet.Pool.Factory.GetPool("IssueCredentialDemoPool", file);
_pool.Create();
Expand Down

0 comments on commit 991a439

Please sign in to comment.