Skip to content

Commit

Permalink
toggle debug mode in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cynicaljoy committed Nov 5, 2024
1 parent d6896c2 commit 227d56a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Fauna.Test/Helpers/TestClientHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ namespace Fauna.Test.Helpers;

public static class TestClientHelper
{
public static Client GetLocalhostClient(string secret = "secret", bool hasStatsCollector = true)
public static Client GetLocalhostClient(string secret = "secret", bool hasStatsCollector = true, bool debugMode = false)
{
if (debugMode)
Environment.SetEnvironmentVariable("FAUNA_DEBUG", "0");

return GetTestClient(secret, "http://localhost:8443", hasStatsCollector);
}

Expand Down

0 comments on commit 227d56a

Please sign in to comment.