influxdb/tsdb/config_test.go

21 lines
317 B
Go
Raw Normal View History

package tsdb_test
import (
"testing"
"github.com/BurntSushi/toml"
"github.com/influxdata/influxdb/tsdb"
)
func TestConfig_Parse(t *testing.T) {
// Parse configuration.
var c tsdb.Config
if _, err := toml.Decode(`
enabled = false
`, &c); err != nil {
t.Fatal(err)
}
// TODO: add remaining config tests
}