From e0f860430e92d9300f9e20f5a4480e67e01cc61a Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Sat, 17 Apr 2021 13:55:21 -0500 Subject: [PATCH] cleanup `AKKA_CLUSTER_ASSERT` environment variable (#4942) Per some of the suggestions on https://github.com/akkadotnet/akka.net/pull/4940 PR review --- build.fsx | 4 ++-- src/core/Akka.Cluster/Cluster.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.fsx b/build.fsx index e93cfd36e33..f75551d0664 100644 --- a/build.fsx +++ b/build.fsx @@ -348,7 +348,7 @@ Target "MultiNodeTests" (fun _ -> Target "MultiNodeTestsNetCore" (fun _ -> if not skipBuild.Value then - setEnvironVar "akka.cluster.assert" "on" // needed to enable assert invariants for Akka.Cluster + setEnvironVar "AKKA_CLUSTER_ASSERT" "on" // needed to enable assert invariants for Akka.Cluster let multiNodeTestPath = findToolInSubPath "Akka.MultiNodeTestRunner.dll" (currentDirectory @@ "src" @@ "core" @@ "Akka.MultiNodeTestRunner" @@ "bin" @@ "Release" @@ testNetCoreVersion @@ "win10-x64" @@ "publish") let projects = @@ -389,7 +389,7 @@ Target "MultiNodeTestsNetCore" (fun _ -> ) Target "MultiNodeTestsNet" (fun _ -> if not skipBuild.Value then - setEnvironVar "akka.cluster.assert" "on" // needed to enable assert invariants for Akka.Cluster + setEnvironVar "AKKA_CLUSTER_ASSERT" "on" // needed to enable assert invariants for Akka.Cluster let multiNodeTestPath = findToolInSubPath "Akka.MultiNodeTestRunner.dll" (currentDirectory @@ "src" @@ "core" @@ "Akka.MultiNodeTestRunner" @@ "bin" @@ "Release" @@ testNetVersion @@ "win10-x64" @@ "publish") let projects = diff --git a/src/core/Akka.Cluster/Cluster.cs b/src/core/Akka.Cluster/Cluster.cs index 16b5ffcb921..a246c163519 100644 --- a/src/core/Akka.Cluster/Cluster.cs +++ b/src/core/Akka.Cluster/Cluster.cs @@ -66,7 +66,7 @@ static Cluster() { bool GetAssertInvariants() { - var isOn = Environment.GetEnvironmentVariable("akka.cluster.assert")?.ToLowerInvariant(); + var isOn = Environment.GetEnvironmentVariable("AKKA_CLUSTER_ASSERT")?.ToLowerInvariant(); switch (isOn) { case "on":