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

Validate database names for SQLite handler #2924

Merged
merged 21 commits into from
Jun 30, 2023
Merged
Prev Previous commit
Next Next commit
Remove empty test
  • Loading branch information
noisersup committed Jun 30, 2023
commit a635ff653e41ec19c59e2b2afd1f34ac24a6671c
11 changes: 0 additions & 11 deletions integration/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"go.mongodb.org/mongo-driver/x/mongo/driver"

"github.com/FerretDB/FerretDB/integration/setup"
"github.com/FerretDB/FerretDB/integration/shareddata"
Expand Down Expand Up @@ -576,16 +575,6 @@ func TestDatabaseName(t *testing.T) {
})
}
})

t.Run("Empty", func(t *testing.T) {
t.Parallel()

ctx, collection := setup.Setup(t)

err := collection.Database().Client().Database("").CreateCollection(ctx, collection.Name())
expectedErr := driver.InvalidOperationError(driver.InvalidOperationError{MissingField: "Database"})
assert.Equal(t, expectedErr, err)
})
}

func TestDebugError(t *testing.T) {
Expand Down