Browse Source

test: target the Process env-var scope

This allows the integration tests to be run on unix-based systems.
tags/2.2.0
Christopher Felegy 5 years ago
parent
commit
3c6b3765ab
No known key found for this signature in database GPG Key ID: 3AB2CA980DDC61A9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/Discord.Net.Tests.Integration/DiscordRestClientFixture.cs

+ 1
- 1
test/Discord.Net.Tests.Integration/DiscordRestClientFixture.cs View File

@@ -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()


Loading…
Cancel
Save