test: target the Process env-var scope
This allows the integration tests to be run on unix-based systems.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Discord
|
||||
|
||||
public DiscordRestClientFixture()
|
||||
{
|
||||
var token = Environment.GetEnvironmentVariable("DNET_TEST_TOKEN", EnvironmentVariableTarget.Machine);
|
||||
var token = Environment.GetEnvironmentVariable("DNET_TEST_TOKEN", EnvironmentVariableTarget.Process);
|
||||
if (string.IsNullOrWhiteSpace(token))
|
||||
throw new Exception("The DNET_TEST_TOKEN environment variable was not provided.");
|
||||
Client = new DiscordRestClient(new DiscordRestConfig()
|
||||
|
||||
Reference in New Issue
Block a user