diff --git a/mongo/collection_test.go b/mongo/collection_test.go index cd21851b30..355cae09cd 100644 --- a/mongo/collection_test.go +++ b/mongo/collection_test.go @@ -226,6 +226,13 @@ func TestNewFindOptionsFromFindOneOptions(t *testing.T) { opts []*options.FindOneOptions want []*options.FindOptions }{ + { + name: "nil", + opts: nil, + want: []*options.FindOptions{ + options.Find().SetLimit(-1), + }, + }, { name: "empty", opts: []*options.FindOneOptions{},