mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* get rid of fake storage.Connector * get rid of the storage.Connector for mango & rdbms * Remove all the connector interfaces * Updating all the test to get rid of the connect * Updating connection to storage for proxy * Updating connection to storage for olympus * get rid of fake storage.Connector * get rid of the storage.Connector for mango & rdbms * Remove all the connector interfaces * Updating all the test to get rid of the connect * Updating connection to storage for proxy * Updating connection to storage for olympus * Fix reviews * Fix reviews * fixing op Name * fix replace the check of an error insted of the object exists * Fix error message in the test
14 lines
276 B
Go
14 lines
276 B
Go
package mongo
|
|
|
|
func (m *MongoTests) TestNewMongoStorage() {
|
|
r := m.Require()
|
|
url := "mongodb://127.0.0.1:27017"
|
|
getterSaver, err := NewStorage(url)
|
|
|
|
r.NoError(err)
|
|
r.NotNil(getterSaver.c)
|
|
r.NotNil(getterSaver.d)
|
|
r.NotNil(getterSaver.s)
|
|
r.Equal(getterSaver.url, url)
|
|
}
|