Skip to content

Commit 712c7d0

Browse files
solnicclaude
andcommitted
test(config): add test for allow/2 nil pid no-op
Cover the allow(_owner_pid, nil) clause that silently succeeds when Process.whereis returns nil for an unregistered name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c138a78 commit 712c7d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/sentry/test/config_isolation_test.exs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ defmodule Sentry.Test.ConfigIsolationTest do
117117

118118
Process.exit(shared_pid, :kill)
119119
end
120+
121+
test "allow/2 with nil pid is a no-op" do
122+
assert :ok = Sentry.Test.Config.allow(self(), nil)
123+
end
120124
end
121125

122126
# Regression guard for I2: when two ancestors of the same descendant disagree

0 commit comments

Comments
 (0)