Procházet zdrojové kódy

test(gw): ensure subscription established

JianBo He před 4 roky
rodič
revize
9d4268e5e6
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      apps/emqx_gateway/test/emqx_stomp_SUITE.erl

+ 1 - 0
apps/emqx_gateway/test/emqx_stomp_SUITE.erl

@@ -384,6 +384,7 @@ t_rest_clienit_info(_) ->
                                     [{<<"id">>, 0},
                                     [{<<"id">>, 0},
                                      {<<"destination">>, <<"/queue/foo">>},
                                      {<<"destination">>, <<"/queue/foo">>},
                                      {<<"ack">>, <<"client">>}])),
                                      {<<"ack">>, <<"client">>}])),
+        timer:sleep(100),
 
 
         {200, Subs} = request(get, ClientPath ++ "/subscriptions"),
         {200, Subs} = request(get, ClientPath ++ "/subscriptions"),
         ?assertEqual(1, length(Subs)),
         ?assertEqual(1, length(Subs)),