Skip to content

Commit

Permalink
Update test issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Wenger committed Feb 22, 2024
1 parent 997f12e commit d93a89a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Avalara.SDK.Test/Api/EInvoicingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class EInvoicingTests : IDisposable
public EInvoicingTests()
{
var root = Directory.GetCurrentDirectory();
var basePath = root.Split("\\src\\")[0];
var basePath = root.Split(new string[] { "\\src\\" }, StringSplitOptions.None)[0];
var dotenv = Path.Combine(basePath, ".env");
DotEnv.Load(dotenv);
Configuration configuration = new Configuration
Expand Down
5 changes: 2 additions & 3 deletions src/Avalara.SDK.Test/Auth/OAuthHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ public class OAuthHelperTests : IDisposable
public OAuthHelperTests()
{
var root = Directory.GetCurrentDirectory();
var basePath = root.Split("\\src\\")[0];
var basePath = root.Split(new string[] { "\\src\\" }, StringSplitOptions.None)[0];
var dotenv = Path.Combine(basePath, ".env");
var clientId = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("CLIENT_ID")) ? Environment.GetEnvironmentVariable("CLIENT_ID") : "sdkOnSbxWebClient";
DotEnv.Load(dotenv);
configuration = new Configuration()
{
Environment = AvalaraEnvironment.Sandbox,
ClientID = clientId,
ClientID = Environment.GetEnvironmentVariable("CLIENT_ID"),
AppName = "Test",
AppVersion = "1.0",
MachineName = "LocalBox"
Expand Down

0 comments on commit d93a89a

Please sign in to comment.