Blob Blame History Raw
From: =?UTF-8?q?Jos=C3=A9=20Valim?= <jose.valim@dashbit.co>
Date: Sun, 2 Jul 2023 10:28:58 +0200
Subject: [PATCH] Use PID valid for 32-bit systems, closes #12741


diff --git a/lib/logger/test/logger/formatter_test.exs b/lib/logger/test/logger/formatter_test.exs
index 82a2ac6a9..2ea4ca08b 100644
--- a/lib/logger/test/logger/formatter_test.exs
+++ b/lib/logger/test/logger/formatter_test.exs
@@ -116,9 +116,9 @@ test "format with format string" do
       format = format(compiled, :error, nil, nil, meta: :data)
       assert IO.chardata_to_string(format) == "meta=data "
 
-      pid = :erlang.list_to_pid(~c"<0.123.4>")
+      pid = :erlang.list_to_pid(~c"<0.123.0>")
       format = format(compiled, :error, nil, nil, meta: :data, pid: pid)
-      assert IO.chardata_to_string(format) == "meta=data pid=<0.123.4> "
+      assert IO.chardata_to_string(format) == "meta=data pid=<0.123.0> "
 
       # Hack to get the same predictable reference for every test run.
       ref =