Skip to content

Commit 73003d7

Browse files
committed
Tag distributed test as such to avoid flaky on regular ones
1 parent e950099 commit 73003d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ workflows:
131131
execute:
132132
- run: sudo -u lightning mix do ecto.create, ecto.migrate
133133
- run:
134-
command: sudo -u lightning mix coveralls.json -o ./test/reports
134+
command: sudo -u lightning mix coveralls.json --exclude dist_integration -o ./test/reports
135135
- codecov/upload:
136136
file: test/reports/excoveralls.json
137137
- store_test_results:

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)