Skip to content

Commit 25145dd

Browse files
committed
feat: Exclude rs_required test units
1 parent 1e0f2fd commit 25145dd

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/mongo/errors_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ defmodule Mongo.ErrorsTest do
4747
{:ok, [pid: pid]}
4848
end
4949

50+
@tag :rs_required
5051
test "resumable errors", %{pid: top} do
5152
@resumable
5253
|> Enum.map(fn code ->

test/mongo/read_preferences_test.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
defmodule Mongo.ReadPreferencesTest do
22
use CollectionCase, async: false
33

4+
@tag :rs_required
45
test "find_one, using read_preferences options", %{pid: top} do
56
coll = unique_collection()
67

@@ -54,6 +55,7 @@ defmodule Mongo.ReadPreferencesTest do
5455
"""
5556
@tag timeout: 700_000
5657
@tag :tag_set
58+
@tag :rs_required
5759
test "find_one, using read_preferences options, tag_set", %{pid: top, catcher: catcher} do
5860
coll = unique_collection()
5961

test/mongo/retryable_reads_test.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ defmodule Mongo.RetryableReadsTest do
44
alias Mongo.Error
55
alias Mongo.Session
66

7+
@tag :rs_required
78
test "find_one", %{pid: top, catcher: catcher} do
89
coll = unique_collection()
910

@@ -29,6 +30,7 @@ defmodule Mongo.RetryableReadsTest do
2930
assert [:find | _] = EventCatcher.retryable_read_events(catcher) |> Enum.map(fn event -> event.command_name end)
3031
end
3132

33+
@tag :rs_required
3234
test "find_one in transaction", %{pid: top, catcher: catcher} do
3335
coll = unique_collection()
3436
Mongo.insert_one(top, coll, %{name: "Greta", age: 10})
@@ -54,6 +56,7 @@ defmodule Mongo.RetryableReadsTest do
5456
assert [] = EventCatcher.retryable_read_events(catcher) |> Enum.map(fn event -> event.command_name end)
5557
end
5658

59+
@tag :rs_required
5760
test "count", %{pid: top, catcher: catcher} do
5861
coll = unique_collection()
5962
Mongo.insert_one(top, coll, %{name: "Greta", age: 10})

0 commit comments

Comments
 (0)