fix(emqx_connector): add default Opts: '#{wait_connected => 1000}'

This commit is contained in:
EMQ-YangM 2022-03-01 14:20:04 +08:00
parent db0e9e3358
commit 62d3aecc09
3 changed files with 6 additions and 3 deletions

View File

@ -68,7 +68,8 @@ perform_lifecycle_check(PoolName, InitialConfig) ->
PoolName, PoolName,
?CONNECTOR_RESOURCE_GROUP, ?CONNECTOR_RESOURCE_GROUP,
?MYSQL_RESOURCE_MOD, ?MYSQL_RESOURCE_MOD,
CheckedConfig CheckedConfig,
#{wait_connected => 1000}
), ),
?assertEqual(InitialStatus, connected), ?assertEqual(InitialStatus, connected),
% Instance should match the state and status of the just started resource % Instance should match the state and status of the just started resource

View File

@ -68,7 +68,8 @@ perform_lifecycle_check(PoolName, InitialConfig) ->
PoolName, PoolName,
?CONNECTOR_RESOURCE_GROUP, ?CONNECTOR_RESOURCE_GROUP,
?PGSQL_RESOURCE_MOD, ?PGSQL_RESOURCE_MOD,
CheckedConfig CheckedConfig,
#{wait_connected => 1000}
), ),
?assertEqual(InitialStatus, connected), ?assertEqual(InitialStatus, connected),
% Instance should match the state and status of the just started resource % Instance should match the state and status of the just started resource

View File

@ -83,7 +83,8 @@ perform_lifecycle_check(PoolName, InitialConfig, RedisCommand) ->
PoolName, PoolName,
?CONNECTOR_RESOURCE_GROUP, ?CONNECTOR_RESOURCE_GROUP,
?REDIS_RESOURCE_MOD, ?REDIS_RESOURCE_MOD,
CheckedConfig CheckedConfig,
#{wait_connected => 1000}
), ),
?assertEqual(InitialStatus, connected), ?assertEqual(InitialStatus, connected),
% Instance should match the state and status of the just started resource % Instance should match the state and status of the just started resource