Merge pull request #10748 from ci/ct-flap-eviction

test(evict): fix flapping testcase
This commit is contained in:
Andrew Mayorov 2023-05-19 15:31:28 +03:00 committed by GitHub
commit e4701a71da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -159,8 +159,6 @@ t_explicit_session_takeover(Config) ->
]),
{ok, _, _} = emqtt:subscribe(C0, <<"t1">>),
ok = rpc:call(Node1, emqx_eviction_agent, enable, [test_eviction, undefined]),
?assertEqual(
1,
rpc:call(Node1, emqx_eviction_agent, connection_count, [])
@ -168,6 +166,8 @@ t_explicit_session_takeover(Config) ->
[ChanPid] = rpc:call(Node1, emqx_cm, lookup_channels, [<<"client_with_session">>]),
ok = rpc:call(Node1, emqx_eviction_agent, enable, [test_eviction, undefined]),
?assertWaitEvent(
begin
ok = rpc:call(Node1, emqx_eviction_agent, evict_connections, [1]),