From 227d56af1406e760c913cfc5522b4d023b1af9d8 Mon Sep 17 00:00:00 2001 From: Darren Cunningham Date: Tue, 5 Nov 2024 10:57:38 -0500 Subject: [PATCH] toggle debug mode in tests --- Fauna.Test/Helpers/TestClientHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Fauna.Test/Helpers/TestClientHelper.cs b/Fauna.Test/Helpers/TestClientHelper.cs index 5d15ada2..71a8b366 100644 --- a/Fauna.Test/Helpers/TestClientHelper.cs +++ b/Fauna.Test/Helpers/TestClientHelper.cs @@ -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); }