Przeglądaj źródła

test: add default quic conf

Zhongwen Deng 3 lat temu
rodzic
commit
d215f5e4e6
1 zmienionych plików z 17 dodań i 0 usunięć
  1. 17 0
      apps/emqx/test/emqx_broker_SUITE.erl

+ 17 - 0
apps/emqx/test/emqx_broker_SUITE.erl

@@ -104,6 +104,23 @@ init_per_testcase(Case, Config) ->
 end_per_testcase(Case, Config) ->
     ?MODULE:Case({'end', Config}).
 
+set_special_configs(emqx) ->
+    Quic = #{
+        enabled => true,
+        bind => {{0, 0, 0, 0}, 14567},
+        acceptors => 16,
+        max_connections => 1024000,
+        keyfile => "etc/certs/key.pem",
+        certfile => "etc/certs/cert.pem",
+        mountpoint => <<"">>,
+        zone => default,
+        idle_timeout => 15000
+    },
+    emqx_config:put_listener_conf(quic, default, [], Quic),
+    ok;
+set_special_configs(_) ->
+    ok.
+
 %%--------------------------------------------------------------------
 %% PubSub Test
 %%--------------------------------------------------------------------