fix(emqx_postgresql): fix lifecycle test
This commit is contained in:
parent
dbe73c70b1
commit
2e3028a8f8
|
@ -61,13 +61,15 @@ end_per_testcase(_, _Config) ->
|
||||||
|
|
||||||
t_lifecycle(_Config) ->
|
t_lifecycle(_Config) ->
|
||||||
perform_lifecycle_check(
|
perform_lifecycle_check(
|
||||||
<<"emqx_postgresql_SUITE">>,
|
<<"connector:pgsql:emqx_postgresql_SUITE">>,
|
||||||
pgsql_config()
|
pgsql_config()
|
||||||
).
|
).
|
||||||
|
|
||||||
perform_lifecycle_check(ResourceId, InitialConfig) ->
|
perform_lifecycle_check(ResourceId, InitialConfig) ->
|
||||||
|
x:show(initial_config, InitialConfig),
|
||||||
{ok, #{config := CheckedConfig}} =
|
{ok, #{config := CheckedConfig}} =
|
||||||
emqx_resource:check_config(?PGSQL_RESOURCE_MOD, InitialConfig),
|
emqx_resource:check_config(?PGSQL_RESOURCE_MOD, InitialConfig),
|
||||||
|
x:show(check_config_ok, CheckedConfig),
|
||||||
{ok, #{
|
{ok, #{
|
||||||
state := #{pool_name := PoolName} = State,
|
state := #{pool_name := PoolName} = State,
|
||||||
status := InitialStatus
|
status := InitialStatus
|
||||||
|
|
Loading…
Reference in New Issue