Skip to content

Commit

Permalink
Fix flake in e2e tests by waiting on subscription completion
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Apr 12, 2024
1 parent 1d074cb commit cedc91d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
[invoke elixir_client_subscribe "entries"]
!TestWsClient.send_data(conn, ProtocolHelpers.relation("public.entries"))
?:ok
?rec \[\d+\]: %Electric.Satellite.SatSubsDataEnd\{\}

[shell pg_1]
!\pset tuples_only
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/_shared.luxinc
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@
"""!
{:ok, %{err: nil}} = TestWsClient.make_rpc_call(conn, "subscribe", ProtocolHelpers.subscription_request(request_1: ~w|$tables|))
"""
?$eprompt
?rec \[\d+\]: %Electric.Satellite.SatSubsDataEnd\{\}
[endmacro]

[macro elixir_client_subscribe_with_id id tables]
"""!
{:ok, %{err: nil}} = TestWsClient.make_rpc_call(conn, "subscribe", ProtocolHelpers.subscription_request("$id", request_1: ~w|$tables|))
"""
?$eprompt
?rec \[\d+\]: %Electric.Satellite.SatSubsDataEnd\{\}
[endmacro]


Expand Down

0 comments on commit cedc91d

Please sign in to comment.