Add TestServer.TCP#58
Open
richard-ash wants to merge 1 commit into
Open
Conversation
dc7e815 to
c76044f
Compare
75c5759 to
4e3d05e
Compare
1e0893b to
4f7a37d
Compare
77b349d to
b77449c
Compare
f5fca44 to
b796fa9
Compare
danschultzer
reviewed
Jun 2, 2026
danschultzer
reviewed
Jun 2, 2026
danschultzer
reviewed
Jun 2, 2026
b796fa9 to
ca2fc2c
Compare
danschultzer
reviewed
Jun 4, 2026
danschultzer
reviewed
Jun 4, 2026
danschultzer
reviewed
Jun 4, 2026
danschultzer
reviewed
Jun 4, 2026
Comment on lines
+59
to
+62
| @spec connections(TestServer.instance()) :: [map()] | ||
| def connections(instance) do | ||
| GenServer.call(instance, :connections) | ||
| end |
Collaborator
Author
There was a problem hiding this comment.
Yea we use this in a couple places to get all connections
danschultzer
reviewed
Jun 4, 2026
danschultzer
reviewed
Jun 4, 2026
danschultzer
reviewed
Jun 4, 2026
danschultzer
reviewed
Jun 4, 2026
danschultzer
reviewed
Jun 4, 2026
Comment on lines
+136
to
+141
| state.connections | ||
| |> Enum.reduce(state, fn connection, state -> | ||
| connection | ||
| |> run_send_handler(to, stacktrace) | ||
| |> send_response(connection, state) | ||
| end) |
Owner
There was a problem hiding this comment.
This reads odd, why run it on all connections instead of just having this being single connection in the first place? I guess we can support multi connections but if we do that we should make it more explicit.
6a8914a to
0fb1390
Compare
8857c9f to
292d6a8
Compare
6d56e25 to
7c2290b
Compare
7c2290b to
d01935b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.