Skip to content

Commit

Permalink
Use PID valid for 32-bit systems, closes elixir-lang#12741
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored and lemenkov committed Jul 27, 2023
1 parent c521bdb commit 013e14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logger/test/logger/formatter_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ defmodule Logger.FormatterTest 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 =
Expand Down

0 comments on commit 013e14d

Please sign in to comment.