Use WeakDecode to decode the initialize values (#2871)

This commit is contained in:
Brian Kassouf
2017-06-14 18:59:27 -07:00
committed by GitHub
parent 4dea784fac
commit b9871fc9ad
7 changed files with 52 additions and 4 deletions

View File

@@ -84,6 +84,17 @@ func TestMySQL_Initialize(t *testing.T) {
if err != nil {
t.Fatalf("err: %s", err)
}
// Test decoding a string value for max_open_connections
connectionDetails = map[string]interface{}{
"connection_url": connURL,
"max_open_connections": "5",
}
err = db.Initialize(connectionDetails, true)
if err != nil {
t.Fatalf("err: %s", err)
}
}
func TestMySQL_CreateUser(t *testing.T) {