Skip to content

Commit

Permalink
Sleep less during testing (2600hz#6272)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti authored and lazedo committed Jan 25, 2020
1 parent 0443a6c commit a1beca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/kazoo_proper/src/pqc_cb_accounts.erl
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ cleanup_accounts(AccountNames) ->

-spec cleanup_accounts(pqc_cb_api:state(), kz_term:ne_binaries()) -> 'ok'.
cleanup_accounts(API, AccountNames) ->
_ = kapps_config:set_default(<<"tasks">>, <<"soft_delete_pause_ms">>, 100),
_ = [cleanup_account(API, AccountName) || AccountName <- AccountNames],
kt_cleanup:cleanup_soft_deletes(?KZ_ACCOUNTS_DB).

Expand Down
6 changes: 3 additions & 3 deletions core/kazoo_proper/src/pqc_httpd.erl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ base_url() ->
kz_term:to_binary(["http://", Host, $:, integer_to_list(Port), $/]).

-spec init(cowboy_req:req(), kz_term:proplist()) ->
{'ok', cowboy_req:req(), 'undefined'}.
{'ok', cowboy_req:req(), 'undefined'}.
init(Req, HandlerOpts) ->
log_meta(props:get_value('log_id', HandlerOpts)),
handle(Req, HandlerOpts).
Expand Down Expand Up @@ -267,8 +267,8 @@ code_change(_OldVsn, State, _Extra) ->
{'ok', State}.

-spec handle_call(any(), kz_term:pid_ref(), state()) ->
{'noreply', state()} |
{'reply', kz_json:api_json_term(), state()}.
{'noreply', state()} |
{'reply', kz_json:api_json_term(), state()}.
handle_call({'wait_for_req', Path, TimeoutMs}
,From
,#state{requests=Requests
Expand Down

0 comments on commit a1beca2

Please sign in to comment.