Fix testcases for new object field protocol
This commit is contained in:
parent
18edf5cec3
commit
eb0826ef3f
|
@ -180,6 +180,7 @@ init({Transport, RawSocket, Options}) ->
|
|||
ChanState = emqx_channel:init(#{peername => Peername,
|
||||
sockname => Sockname,
|
||||
peercert => Peercert,
|
||||
protocol => mqtt,
|
||||
conn_mod => ?MODULE}, Options),
|
||||
IdleTimout = emqx_zone:get_env(Zone, idle_timeout, 30000),
|
||||
State = #connection{transport = Transport,
|
||||
|
|
|
@ -181,6 +181,7 @@ websocket_init([Req, Opts]) ->
|
|||
sockname => Sockname,
|
||||
peercert => Peercert,
|
||||
ws_cookie => WsCookie,
|
||||
protocol => mqtt,
|
||||
conn_mod => ?MODULE
|
||||
}, Opts),
|
||||
Zone = proplists:get_value(zone, Opts),
|
||||
|
|
|
@ -293,6 +293,7 @@ with_channel(TestFun) ->
|
|||
expiry_interval => 60
|
||||
},
|
||||
ClientInfo = #{zone => <<"external">>,
|
||||
protocol => mqtt,
|
||||
peerhost => {127,0,0,1},
|
||||
client_id => <<"clientid">>,
|
||||
username => <<"username">>,
|
||||
|
|
Loading…
Reference in New Issue