mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Automatic Merge
This commit is contained in:
@@ -139,7 +139,7 @@ func parseDSN(dsn string) (string, string, error) {
|
||||
// Treat the DSN as the URL that it is.
|
||||
s := strings.SplitN(dsn, "://", 2)
|
||||
if len(s) != 2 {
|
||||
errors.New("failed to parse DSN as URL")
|
||||
return "", "", errors.New("failed to parse DSN as URL")
|
||||
}
|
||||
|
||||
scheme := s[0]
|
||||
|
||||
@@ -155,6 +155,9 @@ func TestDatabaseStoreNew(t *testing.T) {
|
||||
t.Run("invalid url", func(t *testing.T) {
|
||||
_, err := config.NewDatabaseStore("")
|
||||
require.Error(t, err)
|
||||
|
||||
_, err = config.NewDatabaseStore("mysql")
|
||||
require.Error(t, err)
|
||||
})
|
||||
|
||||
t.Run("unsupported scheme", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user