Skip to content

push times out from handle_call #76

@kybishop

Description

@kybishop

This only appears to be an issue from within a handle_call, possibly only within tests, but any call to push times out.

See this diff for a repro and note how the handle_call is executed (via the debug message) but then hangs on the push: https://github.com/NFIBrokerage/slipstream/compare/main...kybishop:ky/handle_call-timeout-example?expand=1, which causes it to fail the test on line 180

In handle_call for push


  1) test given the client is connected and joined to a topic we may assert_push/5 a push from the client via call/2, then reply/2 (Slipstream.SocketTestTest)
     test/slipstream/socket_test_test.exs:174
     ** (exit) exited in: GenServer.call(Slipstream.TestModeClient, {:push, "rooms:lobby", "msg:new", %{"foo" => "bar"}}, 5000)
         ** (EXIT) time out
     code: GenServer.call(@fixture, {:push, topic, event, params})
     stacktrace:
       (elixir 1.17.3) lib/gen_server.ex:1128: GenServer.call/3
       test/slipstream/socket_test_test.exs:180: (test)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions