Skip to content

Commit cb615cb

Browse files
committed
Tag distributed test as such to avoid flaky on regular ones
1 parent 1bee752 commit cb615cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/lightning/distributed_rate_limiter_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ defmodule Lightning.DistributedRateLimiterTest do
4444
assert 500 < wait_ms and wait_ms <= 1_000
4545
end
4646

47-
# For testing the replication use manual procedure:
47+
# For testing the replication use manual procedure or use this test case isolated to avoid interfering the tests above:
4848
# 0. Disable Endpoint server
4949
# 1. Run node1 on one terminal: iex --sname node1@localhost --cookie hordecookie -S mix phx.server
5050
# 2. Run node2 on another terminal: iex --sname node2@localhost --cookie hordecookie -S mix phx.server
5151
# 3. Call Lightning.DistributedRateLimiter.inspect_table() on both iex and they show the same ets table process and node.
52+
@tag :dist_integration
5253
test "works on top of a single worker of a distributed dynamic supervisor" do
5354
{:ok, peer, _node1, node2} = start_nodes(:node1, :node2, ~c"localhost")
5455

0 commit comments

Comments
 (0)