29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
|
From 8bc67d384b0c21d9bbc7145829ecd49e128038b3 Mon Sep 17 00:00:00 2001
|
||
|
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
|
||
|
|
||
|
---
|
||
|
lib/logger/test/logger/formatter_test.exs | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
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 =
|
||
|
--
|
||
|
2.35.3
|
||
|
|