From f227a3bac4c9dc2aa47ac1f4f475195e581a8a4a Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 2 Nov 2023 21:40:59 +0100 Subject: [PATCH] Update ActorSystemSpec.scala --- .../scala/org/apache/pekko/actor/ActorSystemSpec.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actor-tests/src/test/scala/org/apache/pekko/actor/ActorSystemSpec.scala b/actor-tests/src/test/scala/org/apache/pekko/actor/ActorSystemSpec.scala index ada7eb3600e..88ce8b05710 100644 --- a/actor-tests/src/test/scala/org/apache/pekko/actor/ActorSystemSpec.scala +++ b/actor-tests/src/test/scala/org/apache/pekko/actor/ActorSystemSpec.scala @@ -392,19 +392,19 @@ class ActorSystemSpec extends PekkoSpec(ActorSystemSpec.config) with ImplicitSen } } finally shutdown(sys) } - "not include env variables in toString" in { + "not include username in toString" in { // Actor System toString is output to logs and we don't want env variable values appearing in logs - // "pekko.test.env.var.home = ${HOME}\n" val system = ActorSystem( "config-test-system", ConfigFactory - .parseString( - """pekko.test.java.property.home = "${user.home}"""") + .parseString("""pekko.test.java.property.home = "${user.home}"""") .withFallback(PekkoSpec.testConf)) val debugText = system.settings.toString val username = System.getProperty("user.name") + val userHome = System.getProperty("user.home") (debugText should not).include(username) + (debugText should not).include(userHome) debugText should include("") shutdown(system) }