Skip to content

Commit

Permalink
fixing travis yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
zookzook committed Apr 13, 2020
1 parent 0e53dfd commit ad690bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/mongo/session_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ defmodule Mongo.SessionTest do
|> UnorderedBulk.update_one(%{name: "Tom"}, %{"$set": %{kind: "dog"}})
|> UnorderedBulk.update_one(%{name: "Waldo"}, %{"$set": %{kind: "dog"}})

{:error, [result|_xs]} = Session.with_transaction(top, fn opts ->
#{:error, [result|_xs]} =
:error = Session.with_transaction(top, fn opts ->

%BulkWriteResult{errors: errors} = result = BulkWrite.write(top, bulk, opts)

Expand All @@ -313,6 +314,7 @@ defmodule Mongo.SessionTest do
false -> {:error, errors}
end

:error
end, w: 1)

# assert 263 == result["code"]
Expand Down

0 comments on commit ad690bc

Please sign in to comment.