test(cassandra): fix flaky test
This commit is contained in:
parent
6be8ff378e
commit
8c565abc84
|
@ -541,7 +541,9 @@ t_write_failure(Config) ->
|
||||||
end),
|
end),
|
||||||
fun(Trace0) ->
|
fun(Trace0) ->
|
||||||
ct:pal("trace: ~p", [Trace0]),
|
ct:pal("trace: ~p", [Trace0]),
|
||||||
Trace = ?of_kind(buffer_worker_flush_nack, Trace0),
|
Trace = ?of_kind(
|
||||||
|
[buffer_worker_flush_nack, buffer_worker_retry_inflight_failed], Trace0
|
||||||
|
),
|
||||||
[#{result := Result} | _] = Trace,
|
[#{result := Result} | _] = Trace,
|
||||||
case Result of
|
case Result of
|
||||||
{async_return, {error, {resource_error, _}}} ->
|
{async_return, {error, {resource_error, _}}} ->
|
||||||
|
|
|
@ -403,7 +403,8 @@ retry_inflight_sync(Ref, QueryOrBatch, Data0) ->
|
||||||
buffer_worker_retry_inflight_failed,
|
buffer_worker_retry_inflight_failed,
|
||||||
#{
|
#{
|
||||||
ref => Ref,
|
ref => Ref,
|
||||||
query_or_batch => QueryOrBatch
|
query_or_batch => QueryOrBatch,
|
||||||
|
result => Result
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
{keep_state, Data1, {state_timeout, ResumeT, unblock}};
|
{keep_state, Data1, {state_timeout, ResumeT, unblock}};
|
||||||
|
|
Loading…
Reference in New Issue