Skip to content

Commit 4477f9d

Browse files
committed
change stream test only for MongoDB >= 3.6
1 parent c55d681 commit 4477f9d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/mongo/change_stream_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ defmodule Mongo.ChangeStreamTest do
3333
assert {:ok, %Mongo.InsertOneResult{}} = Mongo.insert_one(top, "users", %{name: "Tom"})
3434
end
3535

36+
@tag :change_streams
3637
test "change stream: watch and resume_after", %{pid: top} do
3738

3839
me = self()

test/test_helper.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ version =
1313
options = []
1414
options = if System.get_env("CI") do [ssl: true] ++ options else options end
1515
options = if version < {3, 4, 0} do [mongo_3_4: true] ++ options else options end
16+
options = if version < {3, 6, 0} do [change_streams: true] ++ options else options end
1617

1718
ExUnit.configure exclude: options
1819
ExUnit.start()

0 commit comments

Comments
 (0)