Merge pull request #13405 from thalesmg/20240703-r57-test-flaky-table-removed-postgres
test(postgres bridge): attempt to stabilize flaky test
This commit is contained in:
commit
f758fd9279
|
@ -728,8 +728,8 @@ t_prepared_statement_exists(Config) ->
|
||||||
emqx_common_test_helpers:on_exit(fun() ->
|
emqx_common_test_helpers:on_exit(fun() ->
|
||||||
meck:unload()
|
meck:unload()
|
||||||
end),
|
end),
|
||||||
MeckOpts = [passthrough, no_link, no_history, non_strict],
|
MeckOpts = [passthrough, no_link, no_history],
|
||||||
meck:new(emqx_postgresql, MeckOpts),
|
meck:new(epgsql, MeckOpts),
|
||||||
InsertPrepStatementDupAndThenRemoveMeck =
|
InsertPrepStatementDupAndThenRemoveMeck =
|
||||||
fun(Conn, Key, SQL, List) ->
|
fun(Conn, Key, SQL, List) ->
|
||||||
meck:passthrough([Conn, Key, SQL, List]),
|
meck:passthrough([Conn, Key, SQL, List]),
|
||||||
|
@ -795,6 +795,7 @@ t_prepared_statement_exists(Config) ->
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
|
meck:unload(),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
t_table_removed(Config) ->
|
t_table_removed(Config) ->
|
||||||
|
|
Loading…
Reference in New Issue