Skip to content
Permalink
Browse files
test: start provider first
  • Loading branch information
DLive committed May 8, 2019
1 parent 5c6d461 commit 3e5f2b9667b5131aa4267251681fbf172e9ba6a8
Showing 2 changed files with 5 additions and 2 deletions.
@@ -47,7 +47,7 @@ start_provider()->

start_provider_listen(Port)->
{ok, _} = ranch:start_listener(tcp_reverse,
ranch_tcp, [{port, Port},{reuseaddr, true}], dubbo_provider_protocol, []),
ranch_tcp, [{port, Port}], dubbo_provider_protocol, []),
ok.


@@ -34,8 +34,11 @@ init_per_suite(Config) ->
level => debug
}),
Start = application:ensure_all_started(dubboerl),
dubboerl:init(),
%% dubboerl:init(),
%% dubbo_service_app:start(a,b),
dubboerl:start_provider(),
timer:sleep(2000),
dubboerl:start_consumer(),
dubbo_service_app:register_type_list(),
timer:sleep(5000),
io:format(user,"test case start info ~p~n",[Start]),

0 comments on commit 3e5f2b9

Please sign in to comment.