Skip to content

Commit

Permalink
test(cassandra): attempt to stabilize flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmg committed Sep 19, 2024
1 parent 8a84daa commit 7f25b8d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -644,16 +644,19 @@ t_missing_data(Config) ->
%% emqx_bridge_cassandra_connector will send missed data as a `null` atom
%% to ecql driver
?check_trace(
#{timetrap => 10_000},
begin
{_, {ok, _}} =
?wait_async_action(
send_message(Config, #{}),
#{?snk_kind := handle_async_reply, result := {error, {8704, _}}},
30_000
5_000
),
?block_until(#{?snk_kind := cassandra_connector_query_return}),
ok
end,
fun(Trace0) ->
ct:pal("trace:\n ~p", [Trace0]),
%% 1. ecql driver will return `ok` first in async query
Trace = ?of_kind(cassandra_connector_query_return, Trace0),
?assertMatch([#{result := {ok, _Pid}}], Trace),
Expand Down

0 comments on commit 7f25b8d

Please sign in to comment.