test: Avoid dumping raw snabbkaffe traces to the console

This commit is contained in:
ieQu1 2024-04-17 17:00:06 +02:00
parent 180130d684
commit d12966db5b
No known key found for this signature in database
GPG Key ID: 488654DF3FED6FDE
6 changed files with 1 additions and 12 deletions

View File

@ -252,7 +252,6 @@ t_session_subscription_idempotency(Config) ->
ok
end,
fun(Trace) ->
ct:pal("trace:\n ~p", [Trace]),
Session = session_open(Node1, ClientId),
?assertMatch(
#{SubTopicFilter := #{}},
@ -326,7 +325,6 @@ t_session_unsubscription_idempotency(Config) ->
ok
end,
fun(Trace) ->
ct:pal("trace:\n ~p", [Trace]),
Session = session_open(Node1, ClientId),
?assertEqual(
#{},
@ -415,10 +413,7 @@ do_t_session_discard(Params) ->
ok
end,
fun(Trace) ->
ct:pal("trace:\n ~p", [Trace]),
ok
end
[]
),
ok.

View File

@ -581,7 +581,6 @@ t_write_failure(Config) ->
)
end),
fun(Trace0) ->
ct:pal("trace: ~p", [Trace0]),
Trace = ?of_kind(
[buffer_worker_flush_nack, buffer_worker_retry_inflight_failed], Trace0
),

View File

@ -1929,7 +1929,6 @@ t_bad_attributes(Config) ->
ok
end,
fun(Trace) ->
ct:pal("trace:\n ~p", [Trace]),
?assertMatch(
[
#{placeholder := [<<"payload">>, <<"ok">>], value := #{}},

View File

@ -517,7 +517,6 @@ t_write_failure(Config) ->
ok
end,
fun(Trace0) ->
ct:pal("trace: ~p", [Trace0]),
Trace = ?of_kind(buffer_worker_flush_nack, Trace0),
?assertMatch([#{result := {error, _}} | _], Trace),
[#{result := {error, Error}} | _] = Trace,

View File

@ -520,7 +520,6 @@ t_write_failure(Config) ->
)
end),
fun(Trace0) ->
ct:pal("trace: ~p", [Trace0]),
Trace = ?of_kind(buffer_worker_flush_nack, Trace0),
?assertMatch([#{result := {error, _}} | _], Trace),
[#{result := {error, Error}} | _] = Trace,

View File

@ -3346,7 +3346,6 @@ wait_n_events(NEvents, Timeout, EventName) ->
end.
assert_sync_retry_fail_then_succeed_inflight(Trace) ->
ct:pal(" ~p", [Trace]),
?assert(
?strict_causality(
#{?snk_kind := buffer_worker_flush_nack, ref := _Ref},
@ -3366,7 +3365,6 @@ assert_sync_retry_fail_then_succeed_inflight(Trace) ->
ok.
assert_async_retry_fail_then_succeed_inflight(Trace) ->
ct:pal(" ~p", [Trace]),
?assert(
?strict_causality(
#{?snk_kind := handle_async_reply, action := nack},