checkiz / elixir-mongo

MongoDB driver for Elixir
MIT License
101 stars 31 forks source link

Failing tests #25

Closed michalmuskala closed 7 years ago

michalmuskala commented 9 years ago

I compiled master and run mix test, got those errors:

  1) test find hint (Mongo.Cursor.Test)
     test/mongo_cursor_test.exs:34
     Assertion with == failed
     code: "BtreeCursor tst_value" == ctx[:anycoll] |> Mongo.Collection.find() |> Mongo.Find.hint(%{value: true}) |> Mongo.Find.explain() |> Map.get(:cursor)
     lhs:  "BtreeCursor tst_value"
     rhs:  nil
     stacktrace:
       test/mongo_cursor_test.exs:36

  2) test explain (Mongo.Cursor.Test)
     test/mongo_cursor_test.exs:30
     Expected truthy, got false
     code: ctx[:anycoll] |> Mongo.Collection.find() |> Mongo.Find.explain() |> Map.has_key?(:cursor)
     stacktrace:
       test/mongo_cursor_test.exs:31

I'm not sure what is the reason for this. May it be MongoDB version? I have 3.0.3

jerp commented 9 years ago

I tested this library only on MongoDB v2.6.5