ソースを参照

chore(quic): troubleshooting large payload

William Yang 3 年 前
コミット
3f7032fbe9
1 ファイル変更5 行追加1 行削除
  1. 5 1
      apps/emqx/test/emqx_quic_multistreams_SUITE.erl

+ 5 - 1
apps/emqx/test/emqx_quic_multistreams_SUITE.erl

@@ -527,7 +527,11 @@ t_multi_streams_packet_boundary(Config) ->
         [{qos, PubQos}],
         undefined
     ),
-    LargePart3 = binary:copy(atom_to_binary(?FUNCTION_NAME), 20000),
+    ThisFunB = atom_to_binary(?FUNCTION_NAME),
+    LargePart3 = iolist_to_binary([
+        <<N:64, ThisFunB/binary>>
+     || N <- lists:seq(1, 20000)
+    ]),
     ok = emqtt:publish_async(
         C,
         PubVia,