Move bookmark default port parsing to readServerConfig func

This commit is contained in:
Dan Sosedoff
2016-11-15 22:01:42 -06:00
parent 59018287de
commit 0510634db7
2 changed files with 6 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ func Test_Bookmark_URL(t *testing.T) {
assert.Equal(t, nil, err)
assert.Equal(t, "postgres://username:password@host:port/database?sslmode=disable", bookmark.Url)
assert.Equal(t, "", bookmark.Host)
assert.Equal(t, 0, bookmark.Port)
assert.Equal(t, 5432, bookmark.Port)
assert.Equal(t, "", bookmark.User)
assert.Equal(t, "", bookmark.Database)
assert.Equal(t, "", bookmark.Ssl)