fix missing quote in toml tag. unclear how test could pass without it

This commit is contained in:
Matt Jaffee 2019-03-25 12:16:24 -05:00
parent 599b2f4a9e
commit 9f4a9421bc
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF
2 changed files with 5 additions and 5 deletions

View file

@ -133,8 +133,8 @@ func TestServerConfig(t *testing.T) {
service = "statsd"
host = "127.0.0.1:8125"
[profile]
block-rate = 100
mutex-fraction = 10
block-rate = 5352
mutex-fraction = 91
`,
validation: func() error {
@ -144,8 +144,8 @@ func TestServerConfig(t *testing.T) {
v.Check(cmd.Server.Config.LogPath, logFile.Name())
v.Check(cmd.Server.Config.Metric.Service, "statsd")
v.Check(cmd.Server.Config.Metric.Host, "127.0.0.1:8125")
v.Check(cmd.Server.Config.Profile.BlockRate, 100)
v.Check(cmd.Server.Config.Profile.MutexFraction, 10)
v.Check(cmd.Server.Config.Profile.BlockRate, 5352)
v.Check(cmd.Server.Config.Profile.MutexFraction, 91)
if v.Error() != nil {
return v.Error()
}

View file

@ -131,7 +131,7 @@ type Config struct {
Profile struct {
// BlockRate is passed directly to runtime.SetBlockProfileRate
BlockRate int `toml:"block-rate`
BlockRate int `toml:"block-rate"`
// MutexFraction is passed directly to runtime.SetMutexProfileFraction
MutexFraction int `toml:"mutex-fraction"`
} `toml:"profile"`