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:
Thales Macedo Garitezi 2024-07-04 09:25:15 -03:00 committed by GitHub
commit f758fd9279
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -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) ->