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,
|
ChanState = emqx_channel:init(#{peername => Peername,
|
||||||
sockname => Sockname,
|
sockname => Sockname,
|
||||||
peercert => Peercert,
|
peercert => Peercert,
|
||||||
|
protocol => mqtt,
|
||||||
conn_mod => ?MODULE}, Options),
|
conn_mod => ?MODULE}, Options),
|
||||||
IdleTimout = emqx_zone:get_env(Zone, idle_timeout, 30000),
|
IdleTimout = emqx_zone:get_env(Zone, idle_timeout, 30000),
|
||||||
State = #connection{transport = Transport,
|
State = #connection{transport = Transport,
|
||||||
|
|
|
@ -181,6 +181,7 @@ websocket_init([Req, Opts]) ->
|
||||||
sockname => Sockname,
|
sockname => Sockname,
|
||||||
peercert => Peercert,
|
peercert => Peercert,
|
||||||
ws_cookie => WsCookie,
|
ws_cookie => WsCookie,
|
||||||
|
protocol => mqtt,
|
||||||
conn_mod => ?MODULE
|
conn_mod => ?MODULE
|
||||||
}, Opts),
|
}, Opts),
|
||||||
Zone = proplists:get_value(zone, Opts),
|
Zone = proplists:get_value(zone, Opts),
|
||||||
|
|
|
@ -293,6 +293,7 @@ with_channel(TestFun) ->
|
||||||
expiry_interval => 60
|
expiry_interval => 60
|
||||||
},
|
},
|
||||||
ClientInfo = #{zone => <<"external">>,
|
ClientInfo = #{zone => <<"external">>,
|
||||||
|
protocol => mqtt,
|
||||||
peerhost => {127,0,0,1},
|
peerhost => {127,0,0,1},
|
||||||
client_id => <<"clientid">>,
|
client_id => <<"clientid">>,
|
||||||
username => <<"username">>,
|
username => <<"username">>,
|
||||||
|
|
Loading…
Reference in New Issue