mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
fix missing quote in toml tag. unclear how test could pass without it
This commit is contained in:
parent
599b2f4a9e
commit
9f4a9421bc
2 changed files with 5 additions and 5 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue