Skip to content

Commit

Permalink
GODRIVER-2698 Add nil test back
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Nov 28, 2023
1 parent 78456f6 commit 6b87758
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mongo/collection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down

0 comments on commit 6b87758

Please sign in to comment.