Skip to content

Commit

Permalink
Add env variable for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sevensolutions committed Sep 7, 2024
1 parent ac6bbd9 commit 8121e11
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/NomadIIS.Tests/NomadIISFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ public async Task InitializeAsync ()
{
var nomadDirectory = Path.GetFullPath( @"..\..\..\..\..\nomad" );
var dataDirectory = Path.Combine( nomadDirectory, "data" );
var pluginDirectory = Path.GetFullPath( @"..\..\..\..\NomadIIS\bin\Debug\net8.0" );

var pluginDir = Environment.GetEnvironmentVariable( "TEST_PLUGIN_DIRECTORY" );
if ( string.IsNullOrEmpty( pluginDir ) )
pluginDir = @"..\..\..\..\NomadIIS\bin\Debug\net8.0";

var pluginDirectory = Path.GetFullPath( pluginDir );
var configFile = Path.GetFullPath( @"Data\serverAndClient.hcl" );

_nomadThread = new Thread( async () =>
Expand Down

0 comments on commit 8121e11

Please sign in to comment.