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

Add basic getMore command #2309

Merged
merged 20 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Close all iterators
  • Loading branch information
AlekSi committed Mar 29, 2023
commit 84c508d49049b5212241014b6c184c244a6297c4
2 changes: 1 addition & 1 deletion internal/handlers/pg/pgdb/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/FerretDB/FerretDB/internal/util/testutil"
)

func TestGetDocuments(t *testing.T) {
func TestQueryDocuments(t *testing.T) {
t.Parallel()

ctx := testutil.Ctx(t)
Expand Down
9 changes: 4 additions & 5 deletions internal/handlers/tigris/tigrisdb/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ func TestQueryDocuments(t *testing.T) {
Collection: collName,
})
require.NoError(t, err)

require.NotNil(t, iter)

defer iter.Close()
Expand Down Expand Up @@ -103,9 +102,10 @@ func TestQueryDocuments(t *testing.T) {
Collection: collName,
})
require.NoError(t, err)

require.NotNil(t, iter)

defer iter.Close()

n, doc, err := iter.Next()
require.Equal(t, iterator.ErrIteratorDone, err)
require.Nil(t, doc)
Expand All @@ -128,9 +128,10 @@ func TestQueryDocuments(t *testing.T) {
Collection: collName,
})
require.NoError(t, err)

require.NotNil(t, iter)

defer iter.Close()

n, doc, err := iter.Next()
require.Equal(t, iterator.ErrIteratorDone, err)
require.Nil(t, doc)
Expand All @@ -153,7 +154,6 @@ func TestQueryDocuments(t *testing.T) {
Collection: collName,
})
require.NoError(t, err)

require.NotNil(t, iter)

iter.Close()
Expand Down Expand Up @@ -187,7 +187,6 @@ func TestQueryDocuments(t *testing.T) {
Collection: collName,
})
require.NoError(t, err)

require.NotNil(t, iter)

cancel()
Expand Down