Commit 5d8f85eb authored by Will Cory's avatar Will Cory

fix(indexer): Add name to toml config

parent 92df7779
...@@ -26,6 +26,7 @@ func TestLoadConfig(t *testing.T) { ...@@ -26,6 +26,7 @@ func TestLoadConfig(t *testing.T) {
port = 5432 port = 5432
user = "postgres" user = "postgres"
password = "postgres" password = "postgres"
name = "indexer"
[api] [api]
host = "127.0.0.1" host = "127.0.0.1"
...@@ -54,6 +55,7 @@ func TestLoadConfig(t *testing.T) { ...@@ -54,6 +55,7 @@ func TestLoadConfig(t *testing.T) {
require.Equal(t, conf.DB.Port, 5432) require.Equal(t, conf.DB.Port, 5432)
require.Equal(t, conf.DB.User, "postgres") require.Equal(t, conf.DB.User, "postgres")
require.Equal(t, conf.DB.Password, "postgres") require.Equal(t, conf.DB.Password, "postgres")
require.Equal(t, conf.DB.Name, "indexer")
require.Equal(t, conf.API.Host, "127.0.0.1") require.Equal(t, conf.API.Host, "127.0.0.1")
require.Equal(t, conf.API.Port, 8080) require.Equal(t, conf.API.Port, 8080)
require.Equal(t, conf.Metrics.Host, "127.0.0.1") require.Equal(t, conf.Metrics.Host, "127.0.0.1")
......
...@@ -10,6 +10,7 @@ host = "127.0.0.1" ...@@ -10,6 +10,7 @@ host = "127.0.0.1"
port = 5432 port = 5432
user = "postgres" user = "postgres"
password = "postgres" password = "postgres"
name = "indexer"
[api] [api]
host = "127.0.0.1" host = "127.0.0.1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment