Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when accessing the db property #10

Open
morkeleb opened this issue Jun 22, 2013 · 1 comment
Open

Crash when accessing the db property #10

morkeleb opened this issue Jun 22, 2013 · 1 comment

Comments

@morkeleb
Copy link
Contributor

For some reason I get crashes with the following test:

def test_crash_when_accessing_db
conn = EmbeddedMongo::Connection.new.db("mydb", :pool_size => 5, :timeout => 5)
res = conn['test']['foo'].find("_id"=>1234).to_a.first
assert_equal(nil, res)
end

I have tried tracking it down but I cant seem to figure out how it reaches the crashing code path.

@morkeleb
Copy link
Contributor Author

It crashes when the connection is accessed with a DB name as well as a bucket name. If I access it with just the bucket then it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant